Merge pull request #7 from wiruzx/master

refactoring & code cleaning
Fixed big bug in the last commit, mainly for FriendsList. Updated to new for much better CPU usage.