Refactor the task model and add database persistence for tasks.
- Document task schema
- Use Alembic for database creation
- Use SQLalchemy for database abstraction
- Update Task status and result enumerations
Change-Id: I247b88f293144a0bdf891958e19711d975c729ba