Add loading indicators and more robust empty text to query collections

Resolves #332.