Configuration rewrite

The proposed config system contains a larger portion of the constants around the codebase. Deployment-specific configuration should be easier, as well.