Improve cookies wrapper.
Make $context accessible even in module constructor.
Fix bug in browser rendering.