e2e: move $httpBackend configuration inside SwiftSimulator

This moves more boiler-plate code away from the tests and into the
SwiftSimulator. This requires Protractor version 0.23.0 or later,
we're now using 1.0.0.

The special arguments array is a local variable automatically
available within all functions. We must bind it to a local variable to
access in the nested function, otherwise the inner arguments variable
would shadow the outer.
e2e: move getText mapper to top-level

We will soon need this function in other scenarios.
swift-simulator: don't add a catch-all rule by default

You now have to call the commit function to indicate that you're done
adding $httpBackend rules. This function will simply add the /.*/
catch-all rule that allows Angular to fetch templates and other files
from the local server when the tests run.

This was prompted by a desire to call setContainers and other
SwiftSimulator functions more than once. This doesn't work if they all
add the catch-all rule -- other rules added after it will never be
considered since the rules are evaluated by the order they are added.
swift-simulator: add setObjects function

Call this with a container name and a list of objects to define
suitable $httpBackend responses to query the objects. This is used to
test the sorting of object listing.

Pseudo-directories are not yet handled.
e2e: test sorting object listing by size
swift-simulator: handle pseudo-directories