Gracefully terminate continuous changes feeds

When maintenance_mode is set to "true" or "nolb", end all active continuous
changes feeds gracefully with a last_seq chunk and clean TCP
termination.

BugzID: 21618
Merge pull request #101 from cloudant/21618-gracefully-terminate-changes

Gracefully terminate continuous changes feeds