[Refactor] Account must become an object
An account is currently a primitive and passed a long with a jid.
It should become a separate class and hold data which is currently stored in globals.
Mind: We cannot just migrate all globals as this would not lead to a much better design. Most of them need to be encapsulated somewhere else e.g., minimized_controls.