make the couch_replicator a full Erlang application