filters: add selected and length filters

We will be using them in a followup commit.
delete-modal: let user confirm deletion (fixes #84)
container: make delete button a default botton

This button is no longer dangerous in itself since we now show a
confirmation dialog.
swift: add deleteDirectory method

This deletes all objects in the specified pseudo-directory.
delete-modal: support deleting pseudo-directories (fixes #36)

This is not terribly elegant at the moment: you simply see the
directory as an item in the delete modal and when it is deleted, it
disappears from the object listing.

See #85 for ideas to improve this.
Merge pull request #86 from mgeisler/delete-modal

Delete modal
swift-sim: move $httpBackend config into commit

This is in preparation for making the simulator a real Angular service
that can keep some persistent state.
swift-sim: make SwiftSimultor an Angular service

This makes the simulator a singleton for the test run. Instead of
repeatedly configuring $httpBackend, the backend is now configured
once at the test start and the response functions consult the current
this.containers and this.objects as needed to compute their responses.

This makes it much easier to examine the state of the simulator at
runtime since the state is visible instead of being hidden inside
$httpBackend.
swift-mock: remove now obsolete commit function

Now that we compute the responses on the fly, the commit function is
no longer needed.
swift-sim: make listObjects a method
swift-sim: make listContainers a method
swift-sim: make deleteObject a method
swift-sim: make putObject a method
swift-sim: whitespace
swift-mock: really enforce test isolation

The tests were not really isolated before -- a 'foo' container added
in one test was visible to later tests. We now reset the state when
the mock is loaded.
swift-mock: clear mock modules

Modules registered with addMockModule stay for the entire duration of
the test run. So when each test adds more and more mock modules, we
end up executing the code again and again.

We now clear the existing list of mock modules when the swift mock is
injected. The mock is then only loaded once. Furthermore, containers
and objects are then also only configured once.