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

The whole if statement wrapper sucks. Have you had a chance to look at something like http://log4javascript.org/? I just randomly found it but having a nicer framework would be cool.

Note: This is not a blocking issue.