Added profile.php, class for the users and several functions.