refine socket connection clientside; expose underscore+_.string to template locals server side