Pull out the base properties of dashboard creation
Make stub_repo inherit from a more generic repo

There's probably more that can be pulled out here.

So that we can create a new repo for config without too much duplication.
Tidy frontend code
Merge pull request #23 from alphagov/refactor-tidy

Minor refactor