EntityState setting refactored + fix for https://github.com/Breeze/breeze.js/issues/30

+ minor odata changes