Instantiate the MethodDispatcher through an IoC container

So that MethodDispatcher->addRepository() can be called
Merge pull request #278 from weotch/ioc-dispatcher

[L4] Instantiate the MethodDispatcher through an IoC container