callback(err, data) style

fixes GH issue #1: Pass errors to callbacks
Merge pull request #4 from astro/master

callback(err, data) style