Support offline messages

- [x] Implement XEP-0160
- [x] Write unit tests
 
related to #19 
move sql stuff into sql-adapter