Update deprecated template events() syntax.
Moved server-only model functions from common to server.
Use Template rendered() to reinstate tooltips -- simpler and removes
Underscore dependency.
No need to check when on server.
Updated CoffeeScript port to match TypeScript port.