Wrapping maintenance mode around migrations

When migrations actually need to be run, there is no need to keep the
app down for the entire deploy

[address #54]