Captures outgoing ajax requests and simulates responses client-side for testing