Adds new class User and improves database.php

Also, it introduces a config file with global settings for the DB.