Css js cleanup

Those changes clean up jquery-ui and fix all issues related to minifyier. As requested in #2161 this PR covers fixes that can be backported to 5.0

Most of the reported issues in #2161 has been adressed, regardung jquery lib cleanup:
 - Mainly links fixes. 
 - JS semantic changes.
 - jquery-ui names has changed from 3rdparty/jquery-ui-1.8.19/jquery-ui-1.8.19.custom.min.js to 3rdparty/jquery-ui-1.8.19/ui/jquery-ui.js
 - removes CSS files from 3rdparty/jquery-ui-1.8.19/themes/flicker. Right now there is only one place themes/base that contains all CSS files and images.


This PR should be tested with #2195 accordingly