Update sample app:

* Subscribe to complete/error on eventbus
* Update build file to use newer sync library
Merge pull request #5 from cloudant/27439-update-sample-application

Replace the EventListener with EventBus notifications to subscribe to replication complete/error events.