PROTON-489: Use reference counting for object management.

Each child object will keep a reference to its parent: Deliveries
reference Links, which reference their Sessions, which reference the
containing Connection.  This keeps the parent objects present until
all child objects have been released.

The transport work lists also reference count their members (Endpoints
and Deliveries).  This keeps freed objects around long enough to flush
their pending state prior to deleting them.

git-svn-id: https://svn.apache.org/repos/asf/qpid/proton/trunk@1570659 13f79535-47bb-0310-9956-ffa450edef68