riemann: more robust connection
template: allow both td and div as enclosing
add pan/zoom support for html