added routing and templates

started with adding routing feature to my single pages application