Merge pull request #9 from youniworld/easemob-dev

uidemo refactor : move the preferenceutils to applib and update model
fix issue : logout is not called on conflict