Modification of the ObjectFactory

This version modifies the implementation of the Object factory. It allows every object to be
created by the ObjectFactory. The New() methods in every Adapter class are not necessary anymore but they have been kept to guarantee compatibility with the previous 
tests. 
In further commits they will be eliminated.