Pouchdb replication library w/ test...index html could stand cleaning up

Wow, promises makes the code SOOOOOOOO much better!