Implemented routing and created a new routeTo directive that simplifies redirections from views.