Update AdapterManager.java

Adding the methods for registering and unregistering adapter factories.