add support for inline CSS

also changed the injection position to just before body end tag: i.e. </body>, as inline rules might not only appearing in the <head> section. The media query rules also needs to overwrite any previous rules therefore they come in last.