adding trace logging on debug;

fixing small bug where reconnecting would have user's status persist wrongly;

this trace system is more complex than the previous version, as it intersects several services of the app and produces legible json instead of just a long string. like before the system has no impact on release build;