Add unit tests for Deferred Object support. Add MockJax for unit testing ajax calls without hitting API.