Added basic support for messages

- Refresh is handled on the connection level. Is it a wise design
decision? I don't know, I'll have to think about it...