User system

Implemented a half working user system, which uses the existing database
tables.