HSEARCH-1365 Extracting serialization support into standalone module.

For now java serialization is used (hard coded) until the service loading mechanism is able to handle dynamic service configuration.
HSEARCH-1365 Removing obsoelte sub interface of BuildContext
HSEARCH-1365 Cleanup and javadocs
HSEARCH-1365 Adding new helper class for handling multiple classloaders