First go at supporting media queries

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