Introduce intrusive_ptr helper

Closed Vlad Zahorodnii requested to merge work/zzag/intrusive-ptr into master

This little helper takes care of calling ref() and unref().

Merge request reports