use metric ID for horizon chart building
Force strip of html from javascript error messages

Without this, errors from things like sinatra simple_endpoint return
images, and html. this is not as good as you think it might be.
Make dropdowns match button width, unless required

`display:flex` on btn-group allows no-break (Chrome)
min-width:0, left:0 makes dropdown menu match parent button.