change to_html method
refactor to_html
tests change for to_html
to_html relations support
to_html relations test
add relation support for #from_json
add tests for relations