Changing proxy rewrite to be controlled by config, based on `Content-Type` header & defaults to `HTML`, `JSON` or `Plain Text`