Fixed bugs with the configuration setup process. Now checks if a user is logged in, redirects to config page if tables don't exist, and fixed other minor bugs.