fixed typo in shouldAlwaysLogBeacons, deprecated generateEmailToken in favour of generateAccessToken, added checkAccount