Add a QML api for resource policy handling.

Adds a new plugin with Permissions and Resource types for requesting resources from libresource.

This is primarily intended to request exclusive access to volume or headset keys but may also find use in media playback and recording with some extensions.