Added rewrite rules
Added support for method in routes, added database connect
Module information is now fetched from database, simple version check implemented