Injection of application instance into modules and configuration