Custom router

Router now works like a charm. Also, quite optimized and also handlebars
templates are added.