Added support search, groups, and advanced message formatting. Also added base API support, and made various bugfixes.