Add ability to complete a task

* Add ability to complete a task
* Store task completed_at timestamp in the database

Refactoring:
* Extract method to complete a method
* Extract method to create a task in specs