Small tidy up of signals and slots

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>
Make RefPtr behave like SharedPtr

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>
Tighten up refcounting of Buffer

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>