Add support for non-mojang accounts and offline-mode