moved local_site variable to template.html
bug fix: website can now be accessed from another device
urls in template.html are now generated using web2py's url helper function