core: Add a list model for packages

Let QML applications access packages more easily.
libhawaiishell: Plugin metadata private object is shared

Add thread-safe reference counting.