Tasks to ajax

Restructured tasks, associated views, CSS and JavaScripts to make tasks submit via AJAX requests. Also moved around some controller logic and added some functionality to models to abstract and cleanly support this.