Update to accept version information up front, and also to send username in tokens call