JDF-238 Added QUnit tests for REST resource interaction.

The QUnit tests now mock AJAX calls and verify that the right data was sent, in addition to verify that the right DOM manipulation has occurred in the callbacks.