Move config-related code out of cloudenvy.core