make error format homogeneous with api by wrapping with data field
make tests use new data wrapper format for errors
Merge pull request #19 from cs198/error-format

Error format