Major refactor of code to add repo service into a base repo ctrl.

This refactoring is meant to do two major things:

1) Introduce a repository service that can be used to capture all information
   about the current repository into a single location for everyone
   to use as needed.

2) Create a base controller and template for all application views that
   are related to a repository.

This required moving code around, updating the ui-router, and refactoring
how everything was put together.