Reorganized spring context configuration and project model.

* Allow for different build profiles: prod, dev, test etc.
* FIXME: Internal resource files used for database settings. Can be
resolved later.
Added stubs for controllers.