added support for additional header fields in encrypted rfc822 messages

Change-Id: If9c3b69fd04a9771b23b10e53b0325f921025b9a
pgp tests added and errors fixed the were shown by the tests

Change-Id: I7aeea5f877569fda36ac32be4ff303492b98e867