Initial hibernate configuration

- Hibernate + postgresql config
- entity subpackage
- move controllers to web subpackage