mess around with content types and encodings;
add unit tests (wms still failing)