Embeddable charts

Closes #416 (plus makes testing chart development easier :)