Starts task edit form

Refactors function returns and assignments to work better with
http://closure-compiler.appspot.com/home
Adds deadline form elements

Deadline validates properly, but still reads time incorrectly (applies timezone)
Fixes loading of date in task edit
Loads priority in task edit