added test for issue 54, "Android doesn't fire change event when there are no documents to replicate"
moved the listener management to DatabaseManager; implemented HTTP listener on Android