Added task completion/uncompletion logic

The user can mark a pending task as done, or a completed
task as pending by clicking the task checkbox.

Also added a /tasks/<status> view so the user can
view tasks based on task status.