Created an autobean factory to support various autobean operations.
Also moved some classes around.