Indicate selected attributes in table headers

Also fixes some bugs on the /runs page.

Fixes #48 
Fixes #46 

Demo at http://dans-macbook-pro.local:5000/runs and screenshot here:
![screen shot 2014-09-22 at 11 52 59 am](https://cloud.githubusercontent.com/assets/98301/4359265/92590936-4270-11e4-801c-73b6b9c103db.png)