Updates to the Task class.

The task class now has a unit-testable function that inserts a task (in
sorted order) into the DOM.  Also, when the user adds an end date to a
project the referenced code now returns the task completion date with
all of the other task data.