Simplify ObjectSerializationFactory.

ObjectSerializationFactory contained several factory like methods
and exposed another set of interfaces (ObjectReader/Writer)
unnecessarily. Really the only thing needed is a read() and a write()
pair of methods, leaving all the extra complexity as implementation
detail where/if needed.
Synchronize DefaultPlatform.getTempDir() to avoid false precondition check on concurrent access.