Commands: Infer migrations' namespace (and directory)

Resolves #671
Is there a better pattern for testing protected methods? I hate making everything internal.