CLC-966 - Provisional task adding

https://jira.media.berkeley.edu/jira/browse/CLC-966

This is a follow up on #473

Fixes the following:

* Disables submission of the same task multiple times
* Adding a task with a date now works
* Removing duplicate code
* Simplify the splitting of dates code
* Whitespace/comments issues