Initial attempt at using routelib class to reuse common functionality in routes.php. Might not be the best use yet.