refined the templates and pretty urls, started framework orm