Beginnings of refactoring to be more proper angular and remove server side templating.