Moved `cryptomaterial.py` into `oppy.crypto`.
Fixed bugs found by starting up the socks demo.