cookie management; a/b variation selection; body class attributes

- Spec: https://github.com/GigaOM/legacy-pro/issues/2916
- based on proposed structure [here](https://gist.github.com/borkweb/10403456)