panels draggable and collapsible

moved jquery code in the controllers to directives, cleaned up the css