Repositories and InitDbService

Repositories created, InitDbService started, applicationContext.xml
fixed EMF bean, renamed id to entityManagerFactory.