Implement simple limits in the dispatcher.

This adds Dispatcher to the public API so that application
code can tweak the policy.