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
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
reindent
Merge branch 'batch_save_refactor'