added header information to all outgoing messages, fixed some performance bugs (double/triple work)
Merge pull request #19 from ipa-rmb/groovy_dev

added header information to all outgoing messages, fixed some performance  bugs (double/triple work)