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

This PR includes 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.

Your new links should look like in webgateway/templates/base/includes/jquery-ui.html

<link rel="stylesheet" href="{% static "3rdparty/jquery-ui-1.8.19/themes/base/jquery.ui.base.css" %}" type="text/css" />
<script type="text/javascript" src="{% static "3rdparty/jquery-ui-1.8.19/jquery-ui.min.js" %}"></script>