add unclaimeddevices, made callback for subscribe optional, set online true when authenticating, add stack trace to error output