factor out results templates into includable partials
make legend an includable snippet too
start developing state slide implementation, references #583
remove some cruft