Basic, lightweight models

`Config` and `Contact` are both model-like, so it might make sense to refactor the common parts into a `Model` class. We are likely to be needing it for other things, `Group` being on of them.