Duplicate filtering and basic simulated reply message loss.

Also incorporated Jason's changes for services.