Allow appname and procid to be format strings.

Handy if your Logstash agent is parsing from multiple application
sources to send to a single syslog instance.
Merge pull request #438 from wotifgroup/variable-app_procid

Allow appname, procid, and msgid to be format strings.