Separated class registry functionality from WeaveAPI into
ClassRegistryImpl and eliminated some mx dependencies.

Change-Id: I63a42c45ca447b826ffc1032476abdfcdac0c8fd