Return a JSON blob in tests using components

Instead of returning a list of keys, the component resolver now returns
a JSON blob of all the locals and their values in tests.
Merge pull request #102 from alphagov/return-component-local-values

Return a JSON blob in tests using components