Added `@Autowired` to the Controller

Also, now the contexts are loaded when the web app is loaded (added
listener to web.xml).