Sanitizing the instance ref before sending it through RPC

OS-269

In order to work with qpid cobalt can not send SQLAlchemey objects
through the AMQP message. This will now sanitize the object before
sending it along.

Change-Id: Ife2342febd1cfc6491f874b88fd745615511de88