new rebar version
change mochijson2 to jsx, use lager instead of io:format, add tests and callback for error handling