PROTON-557: add events for local endpoint state changes, add event categories.

git-svn-id: https://svn.apache.org/repos/asf/qpid/proton/trunk@1585803 13f79535-47bb-0310-9956-ffa450edef68
PROTON-545: hopefully fixed conversion warning

git-svn-id: https://svn.apache.org/repos/asf/qpid/proton/trunk@1585817 13f79535-47bb-0310-9956-ffa450edef68
PROTON-599: applied patch to fix typo on systems with SO_NOSIGPIPE

git-svn-id: https://svn.apache.org/repos/asf/qpid/proton/trunk@1586183 13f79535-47bb-0310-9956-ffa450edef68
NO-JIRA: Have proton.c exit on error rather than abort, e.g. for bad command line options.

git-svn-id: https://svn.apache.org/repos/asf/qpid/proton/trunk@1586327 13f79535-47bb-0310-9956-ffa450edef68