Adds some Registrars and the Instantiator class

this is close to unifying the configuration code that was copied in storm, hadoop and akka.

The next step is to create KryoInstantiators from Config objects.