Merged master, still highly experimental

I plan a UI revision, as well as some more overhaul of the internals. Also, I might need help clearing the chat list when switching between profiles.