Better servlet dispatcher implementation, with support for a
customizable factory.