Gallery: added tagging functionality and filtering by tags.