C++: Centralise code for preparing shared pointers.
C++: Add internal lookup to find Channel object from sr_channel *.
bindings: Overhaul packet & payload classes.