extract users interface to own file
some cleanup

useless legacy type definition removed from package
first implementation of replication

this is pretty basic, replicator is a subclass of `Database` that
provides higher level methods to deal with special replication documents
semantics.