delete-modal: test deleting pseudo-directory

This revealed a bug in the callback: unlike deleteObject, the
deleteDirectory method does not return a defered coming from $http.
This means that the defered doesn't have the success short-cut method,
it only has the normal then method.
Merge pull request #87 from mgeisler/test-delete-directory

delete-modal: test deleting pseudo-directory