Added tag page

Added /tags/TAG URLs and a page displaying pieces with that tag
Also cleaned up some of the query functions in pieceutils