This simplifies the tab handling by attaching one click handler to
handle the open/close mechanism for all tabs. It should now allow to
dynamically add tabs even after the fact and the handler should still
work.
Support for the actual tab contents has been removed for now. This
should most probably be readded via PHP anyway.