Update deploy.migrate task

- dev/build run on a single server to prevent multiple synchronous database operations in a replicated environment
- ensure that 'sake dev' is run at the conclusion to every flush to ensure cache initialisation
- cleanup code so real humans can read it too