Migrate tasks to state field.
Fix field name in tasks views.
Done some tasks.
Replace unicorn with rails wrapper.
Add empty state machine to the task model.