Removed user from the online friends list

Fixed a bug that caused the currentUser to show up in the online
friends group
Added tab switching to the login view

Also added a default username save function
Removed useless pubkey file
Added a preferences window
Added notifications to the chat window and cleaned up the processing code
Added a keychain manager
Improved data reading of the TCPSocket
Added default preferences