Refactored zoidberg/edit-workflow.

Refactored zoidberg/get-analyses into a zoidberg/get-analysis function that returns a single analysis instead of a list containing a single analysis.
Refactored the logic in zoidberg/edit-workflow for the new function.