Replaced $routeProvider with ui-router

Added latest ui-router build to the vendor directory, as there's no
bower support from ui-router yet.
Replaced use of `$routeProvider` with `$stateProvider` and
`$urlRouterProvider`.
Created `app/header.tpl.html` and `app/footer.tpl.html` from
`index.html` to demonstrate named views.