Created base classes for factories and registry based on MIME types.
Script engine manager and content handler registry are now based
on defined base classes.