Add code for BER encoding.

Issue #185
Add code for KDF

Issue #185
Continue work on automatic user registration

Issue #185