made static data encryption use pgp format, fixed loads of bugs, now UserContext sharing test is working!