Fix realm auto-creation.
Fix IV not being encrypted if PIN encryption is enabled. Remove a superfluous log line.
More helpful messages when reusing token codes.