Add state change callback.
Merge pull request #118 from EasonLiao/clarification

Server state MDC doesn't get set when starting a single server?
Buffer requests before broadcasting phase.