Initial PKCS#11 bits
More packet cleanups