Added callback to process successful server response.
Merge pull request #8 from remiq/master

Callback to process successful server response.