small refactor

Conflicts:
	app/scripts/mapper/s2_batch_resource.js
another small refactor
Merge branch 'small_batch_save_refactor' of https://github.com/seandunn/S2Mapper into batch_save_refactor

Conflicts:
	app/scripts/mapper/s2_batch_resource.js
Don't send empty object to batches.create, and use functional loop
to update the order update json
Logging can be configured to go to the browser console as well
as the log store object
Filtering no longer returns a promise
Take advantage of item filter no longer returning a promise
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.
Working on two tube tests, and fix for Benoit
Batch save now sends username as extracted from root object
Batch save extracts username from root.

Tests for saving a batch with two items in two different orders is complete.
Merge remote-tracking branch 'sanger/master' into batch_save_refactor
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