Adds CSS URL rewriting capability w/ tests

Similar to @evocateur's commit, but I used URIjs to handle a few more URL cases and added some unit tests to validate the change.