Refactored encryption code, move keyczart to own packages, fixed timeout signer tool in 3