Support simultaneous encryption and signing

I added some minimal code to allow for both encryption and signing. I tested on two setups, one with RoundCube 0.9.1.cp2 (Cpanel) and the other one with 0.9.2. Everything seems to work.