Pull the real-time indexing blocking/queuing logic into a dedicated class.

We'll use this for handling notifications too.
New notifications engine (replacing webhooks)
More build.xml port corrections