Node.js callback style

Error always has to be the first parameter when callback is invoked. 
Added callback presence checks.

Can be helpful for #2