Optimize ordering of CSS links and scripts

Placing CSS links before all script tags allows the CSS to be loaded in parallel.
Merge pull request #354 from eco/optimize-css

Optimize ordering of CSS links and scripts