Add support for specifying local INSTALLED_APPS and MIDDLEWARE_CLASSES
Add profiling middleware for debugging