Cleanup

- remove unused cookie-parser dependency
- simplify message posting code