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.
This is too late to handle this case.  We've made the LMS fetch a ton of data (1 row per seed per response) and also made the data-api serve all this data, only to throw it away here.  Should be detecting it in the server side and not making the API request at all.