In-line Analytics

PR for internal review purposes as prelude for PR to upstream
    PR'd against copy of upstream master.

Known issues to be fixed later:
- Styling is embedded in html file as prelude to re-styling
- No tests
- pep8 and pylint not looked at yet.

@jbau @jrbl @stvstnfrd @caesar2164 if you please.
When iterating over an object/dict with a `for( in )` loop, you must
filter with `hasOwnProperty` [0]. Else, you could end up iterating over
inherited properties.

```javascript
var key;
for (key in result) {
    if (result.hasOwnProperty(key) {
        // do stuff here
    }
}
```

[0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty