Added new main and database classes.

The Application.java will call all necessary methods,
and handle clean shutdowns.

The DatabaseHandler.java class will handle all database related procedure,
as well as provide API's to abstract interaction with the database.

The UserCreator.java class has been updated to check for JSON with
valid keys.