Refactor cookie handling
Clean-up DOM component
Implement WebClient callbacks
Format code