Refactor task store handling.

* Assign a task's store object as direct property instead of just the
  name.

* Store objects are now responsible for adding a reference to
  themselves on all the tasks that originate from them.

* Remove "Task" object instantiation in the "newTask" function and
  rename it to "addTask".

* Add "id" property to task stores.