Added .jstd and .soy to highlight mode guessing table.
Refactor of all handlers to eliminate redundant code between connection types.