Fix error with Edits and JSON parse error handling.
Merge branch 'master' into stringify

Conflicts:
	lib/featureservice.js