add JSON transport, better config control

add support for JSON transport
add support for arbitrary server host/path
allow HTML tags to override defaults