Replication start via xquery....

cleanups, javadoc