Rewrite to JavaScript, Express 3.x and Hogan

Rewrite partially completed.  Still more work to do.