Add PostgreSQL replication script

Dumps stagecraft and imports it into dev vm. This requires that no users
are connected to the dev vm PostgreSQL, if there are then it will blow
up.
Stop collectd while restoring

We need to remove collectd's connection to the stagecraft db so the
restore can happen.
Move factory-boy to _testing requirements

This is required for testing and it cost me some time having it in the
CI specific requirements when I was not using the run_tests.sh script.
Add ResourceView

This is a class-based view that tries to encapsulate all the
functionality we want from resources, to try and remove some duplicated
code.
Split apart factories

The factories for various model types should live along side the apps
that own the models rather than in unrelated apps.
Convert Organisation app to use ResourceView

I've left all the view tests in from when it used its own logic to
further prove the ResourceView provides the same functionality as the
code that it is replacing.
Add transforms app

This includes TransformType and Transform models and uses ResourceView
to create a standard set of HTTP routes to access and modify these
resources.
List transforms for a given data set
Merge pull request #272 from alphagov/feature/resource-view

Transform config API
Updated help text for seconds out of date

The way we calculate out of date data is based on the timestamp at the start of the period. The current defaults in stagecraft help text show the number of seconds of the period the data represents. This means the alerts start firing before the data is technically out of date. I have doubled the values so that the the correct values are entered when creating new datasets
Merge pull request #274 from alphagov/Change-help-text

Updated help text for seconds out of date
Remove authentication requirement for GETs on transforms
Add note on running tests to readme
Merge pull request #276 from alphagov/readme-for-tests

Add note on running tests to readme
Merge pull request #275 from alphagov/transform-auth

Remove authentication requirement for GETs on transforms
Update running instructions in readme
Merge pull request #277 from alphagov/update-readme

Update running instructions in readme
Add query parameter field to transform

We need to know the query parameters to use to request the data before
it is transformed as these vary on uniformly or a per case basis.
Merge pull request #278 from alphagov/feature/transform-query-params

Add query parameter field to transform model
squash-me reset password