Ticket 558 - Replication - make timeout for protocol shutdown configurable
Bug Description: If you attempt to stop a replica while its under load it will
appear to hang. The "hang" is actually a default timeout of
20 minutes.
Fix Description: Made the timeout configurable, with a default timeout of 2 minutes.
Also found an issue with the replication connection code where
we needed to check for server shutdown.
Did some code cleanup as well.
https://fedorahosted.org/389/ticket/558
Reviewed by: richm(Thanks Rich!)