* added better error handling
* callbacks are in node.js style (first argument is the error, the second one the result/response)
*updated sword.min.js