Fix karma tests.

Probably were broken by c8aed5a1fd06b4ace45c84b34b38f3e2024f77d0.
Closes #399.
Merge pull request #403 from flibbertigibbet/feature/fix-karma-test

Fix karma tests.
Move scenario subviews to their own subdirectories

Also deletes scenarios-service and paves the
way for it's replacement:
ScenarioManager

This is it's own commit just to separate the boilerplate
from actual changes.
Refactor scenario-service into Manager+Model

Each model now has two classes:
Model: The actual model definition, in most cases just a $resource
Manager: A class to cache individual instances of Model, plus
            provide helper methods for caching/filtering

trip-model.js is unimplemented, and is just a placeholder
with all of the old prototype code.

Moves isReverseView from service back to controller, since
    it really is controller level code

Moved the scenario retrieval functions in scenario-controller
    to list-controller since we don't really need this data
    anywhere else

The scenarios views should work up through routes. Any view past
that will likely crash. But thats ok, we have cards to fix it.

FIXME: The /gt/scenarios/<db>/routes endpoint returns human-readable
        string for routeType, need integer.
Use routeType id on scenario endpoint, switch camelCase
Update routes-controller with scala endpoint changes
WIP: Disable sample_period if already exists
Bugfix: Scala CreateScenario fails without stops_routes()

Calls stops_routes_function.sql during Scenario Database
creation.
Bugfix list controller updateHeight event

Must use $scope.$emit to bubble events up the scope
since the directive is on a parent scope.

Previous use of $scope.$broadcast saw these events never fire
because they were being fired down to child scopes.
Update bower to use angular 1.3.1

This is a breaking change and will require the removal
of the bower_components directory + a 'bower install'
Add scenario new-success view

FIXME: Does not update name/description of existing scenarios