Changed call back logic for rest. Removed the old interface and created a static interface, so that multiple requests can be made with a single HttpAsyncRequest and multiple call backs for handling the result.