Added sample replication hook to "Repl Hook Guide"

This merges the original hook documentation with an example of building a fairly simple replication hook,