Rename repository navigation layout file

The name repository based is too general, since I will not have so many
pages that are based on repository data and since the layout file is
used to create the breadcrumb I have renamed it accordingly.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Add modal to be used for metric score weighting

I have added a Bootstrap modal which will be used to set the metric
score weighting. Currently, each input gets the placeholder 1.0 which
will be the default value. In the next step I will implement the code
in JavaScript to parse the values to pass them to the metric score
method.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Fix repository breadcrumb

Just a small re-add of the relative position style to repository
breadcrumb to make it working again.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Declare root as global namespace for CoffeeScript

I have added a global namespace that is used to declare functions that
are used across different CoffeeScript files. For this global namespace
I have added a getPath function that is used to retrieve the current
path elements to decide whether code should be executed or not.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Add route and method to retrieve weighted score

I have added new routes, extended the repository score method in order
to retrieve a score value which reflects optional weighting values.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Add AJAX request to retrieve weighted score

The weighting floats are now collected from the modal input fields and a
JSON request is made to retrieve the data.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Refactor score meter into a CoffeeScript class

Back to the roots I have refactored the score meter into a class in
order to make methods available to change the state afterwards.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Finish implementation of score configuration

With this commit the repository score can now be adjusted by entering
custom weighting for each metric. With this commit I have added more
refactoring to make the score meter class as reusable as possible so
far. For instance I was able to eliminate duplicate code. By declaring
the score as a class attribute it is possible to animate the score meter
from the current position and not from 0.0 all the time. This commit
closes #33.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Add exception to the before filter of repositories

I have added an exception method to the before filter on the repository
controller. The index method should not rely on the init method which
uses the repository parameter which is not given on the index action.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Add timeline navigation pill

In the next step I will work towards a timeline to display change over
time, although I will probably go more into finish refactoring the all
the report views for the metrics.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>