minor optimizations

removed redundant code
moved css compression function outside of style.php
some fixes for #399

fully working with no js
replaced some js fades with css transitions