Adds support for css in style elements (as well as link elements).

Adds support for css in style elements (as well as link elements).
Improves the code with document.styleSheets to read every styleSheet in the document, thus the css declaration order is kept.