reset errorSent for each message
updated dispatcher to send general messaging function, first param error message, second param data object of sucessful result, also fixed up pinger a bit
minor fix as per michiels suggestions in issue #14
merge upstream/master