Rewrite the webui minify js script in python

Also replaced minifier 'yui-compressor' with pure-python 'slimit'.