better api for gateway and ability to change request/$.ajax objects directly
tests for custom configurations for gateway implementations