Implemented security.

Implemented security using Spring Security.
Moved to Postgresql.