Improved error handling and passing of error messages/codes back to caller.
Merge pull request #3 from mapbox/pass-errors

Improved error handling and passing of error messages
0.0.3
merge with master