small refactor of routing, cleanup, templates are now parsed entirely on client side for /, /register, /login for now