Track analysis table

This adds the `analysis_workflow` table to track what step an analysis is on while in progress. It also contains updates to the analysis object to interface with the table.