Parse config in index.js

This means the app can be require()'d without having a config file.