Converting Routes to Functions

"A COMMIT FULL OF BUG", Also introducing config.php