Re-added support for reading registration tokens from a file. Contributed by @ginger and @benbot.