iOS badge support
clear active count when optdata call user has no conversations
parse ios version and check RM#640
Merge branch 'badges'