Push up code from Martijn to allow excluding certain tags from inline CSS. He also fixes a small error with skipping media queries.