This increases modularity in preparation for integration testing and addition of a CLI command hierarchy. ghstack-source-id: 9c9437323610d3d3a4745b04928eb9fdb6566963 Pull Request resolved: https://github.com/certusone/wormhole/pull/63