Add example of success and error handlers

I thought it would be nice to have an example of how to handle success and error handlers. It is not given how to implement this correctly. Maybe even my example is not the best way to do it, but wanted to contribute with a suggestion :-)
Merge pull request #18 from christianalfoni/master

Add example of success and error handlers