Updated BBRepository interface

* Simplified hook method signature
* remoteItemWithKey: now returns removed item
* Added willFlush and didFinishFlushing hooks