Added support for metadata queries

This is currently a work-in-progress feature of Imbo, so I'll hold off on merging this until it lands.