Tagging: Cleanup sorting filtered table

Should work much better now, instead of hiding the unfiltered table, we
now detach it completely so that there is no id clash.
Tagging: Fix applying stored table order

When switching back to the unfiltered table, we want to fire the click
event only when the new order is different than the existing one.
Goals: Add initial infrastructure

This adds a goal tab for TPs and allows creating and removing goals using
the same form and links that can be used for tags.

Fixes bug 3073