added application context and configuration using DI
refs #44