Refactored Code for final replication to Cloudant
Added CouchDB Plugin functionality
Merge remote-tracking branch 'origin/master'