Merge changes from topic "buffer_hub_to_libui"

* changes:
  Format BufferHub{Buffer,Metadata}.{h,cpp} to match libui style
  Move detached buffer to libui