More Code Reorganisation

Moved logging and message functionality to new module `logging.py`.
allow manually providing pubkeys for multi‐sig (fixes #413)