Code review

+ Auto build groups.
+ Fix bug with copy multi-line emoticons.
+ Fix bug with select and hover group header.
+ Code cleanup.