OZP-806 Refactoring Windowname transport code to be more robust in handling the Accept header, to use Strings instead of Groovy Strings when possible, and to use JAX-RS constants e.g. MediaType.APPLICATION_JSON instead of 'application/json'