Rest wrap fixes

Should be possible to pass in a config when wrapping the base rest client in an interceptor.