Re-write config for Emperor

Part of #1