Complete restart.

Proper hibernate implementation.
User registration and authentication.