Added GPG support to User package and various other changes.