Basic media query support

Currently only supports loading CSS for different kinds of media via a
resource name e.g. ./styles/print@media=print or
./styles/print.css@media=print