Moving action resources from root JSON into 'actions'

Moves action resources into the 'actions' element of root.
Turns each root instance into a specific object.
Properly checks that the root resources are present in spec.
Merge pull request #44 from mattdenner/turn_actions_into_resources

Moving action resources from root JSON into 'actions'
Sequential deferred helper

Allows for sequences of deferreds to be processed linearly.
Behaves in a similar fashion to $.Deferred.
reindent
Merge branch 'batch_save_refactor'
Merge pull request #46 from mattdenner/sequential_deferreds

Sequential deferred helper
Merge branch 'master' of https://github.com/sanger/S2Mapper into batch_save_refactor

Conflicts:
	test/spec/s2_batch_resource_spec.js
Post merge updates