Support offline messages

- [x] Implement XEP-0160
- [x] Write unit tests
 
related to #19