add basic groups api

Wouldn't setting the query to `None` automatically make it a static group? The `is_smart_group` function in the `ContactGroup` class just checks whether or not `self.query` is `None`.