Alot of changes

Added classes for connection to database. Fixed the mainpage. Added
main.php and profile.php. Added information for user in the sidebar.
Currently all locations return INVALID LOCATION ''.