Added Spring context.
Refactored bean & handlers.