Added object/type methods to serializer interfaces. Improved Rest client...

... error handling and object disposal.