refactor PRI-handling code
Merge branch 'master' of git+ssh://git.adiscon.com/git/rsyslog