More refactoring of the deployment process, as well as an initial implementation of `deployment.keys`. Fixes #2.