Various changes

* Configured Hibernate
* Added login module
* Added security to redirect to main page