Improve collapsiblePanel directive to support all needed requirements
(so far).
Clean up TracksController by moving metadata into appropriate services.