Code cleanup, removal of JavaScript based resizing hack

Hi @zegenie : a few more changes I'd like to merge. CSS / PHP cleanup. Removal of a JavaScript hack.