Serialization support for Table and QueryResult.

Added a serializable class TableCarrier that can converts to and from
table. It provides no access to its content but can be easily converted
to standard Table object.

I've changed the usage of QueryResultTask, just around the places it is
serialized and deserialized, to comply with the new interface.