Move the `LoginServer` object to loginserver.js