Revert "Merge pull request #584 from afuna/bug4703-double-stylesheets"

This reverts commit 5864bed569c6abbbcf3c61b6b1a98b6b17ff9bd9, reversing
changes made to 0057b338655839e52871fab15130df897c877976.
Revert "Merge pull request #567 from afuna/bug4073-js-at-bottom"

This reverts commit d298ebb2b7744c9d3a8bffc7cc54408962d400dd, reversing
changes made to 6e01bda70d00abdfe4e2576bd787ef895b1ea7f9.

(We have a lot of inline scripts on old pages which are broken by this
change)