fix settings again, and cleanup

I hate js so much
..
Merge pull request #72 from Hellowlol/shutdownjs

Shutdownjs fix
add gzip
Merge pull request #74 from Hellowlol/gzip

add gzip
Merge branch 'master' into transmission