Port config to prismatic schema

This will probably be easier to review by individual commits.