Use correct configuration profile in ContainerRequestFilter and do some small cleanups