Added reasonably stable code

In-band registration and account removal already works.