Implement ProfiledClassFactory, fix autoloader to support it, invoke in QueryService and ResultSets

implemented profiledclassfactory for mw service