References #82, added removal and changed the code a bit.
References #82, added removal and changed the code a bit.

Changed the code to use $push and $pull instead of direct saving. This
should prevent a possibility of overwrites in case multiple
connect/disconnect calls run almost simultaneously and the last one
overwrites the changes of previous ones.

learning-layers/Timeliner