Adding middleware that generates a configuration-specific, angular-compatible module for easy API calls from within angular controllers.