Fixed modal close to go to correct paged route
Fixed up resource types to use UI Router.
Fixed up jshint.
Linting fixes for JS.
Adding resource type index to repo.