Add API for package queries

It would be very handy to query for installed packages. That should take in to consideration not only installed name but also Provide.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information