Revised original ajaxAdapter test to use sinon stub
ajax adapter fixes for https://github.com/Breeze/breeze.js/issues/40 plus tests
revised angular adapter for improved testability.