Implementing support for DRAINING state.

Bugs closed: AURORA-82

Reviewed at https://reviews.apache.org/r/17723/