[loading] remove duplicate code for class loading

While here, use classpath as key for services
[datastream] must->should implement
[builder] classpath test