Panel and Partials fixes to make HTML valid

This commit fixes a number of instances in the Kibana panels and partials where small errors (unclosed tags, extra/unneeded closing tags etc) render the HTML invalid.