Fixed a bug where css files could not be gzipped

There seems to be a line length limit on gzipping files which css files were hitting, this commit adds a secondary css minification step and produces each css option on a single line, not quite as compact but shouldn't fail to gzip
Fixed a memory leak when datatables are refreshed
Merge branch 'staging' into katana