unit tests for ast->jstree converter
refactor ast->jstree module to reduce code duplication
simplify table converter; don't have open state set for atoms