Commands: Infer migrations' namespace (and directory)

Resolves #671
I'm going to refactor this a bit to make it easier to override.