Basic template pipeline handled

First patch in solving issue #8.
This establishes the connection between template, router and views.
The router now auto updates the view by calling the refresh()
function of the view for every 10 secs using setInterval.
The router also loads navbar.