CORE-5832 Initial edit/copy-workflow refactor.

Moved /secured/edit-workflow/:app-id and /secured/copy-workflow/:app-id endpoints to /apps/:app-id/ui and /apps/:app-id/copy.
Started refactoring metadactyl.zoidberg functions with database changes to support these endpoints.