rewrote templating.coffee, cleaned up respond, server, exception handling improved greatly

The templating re-write may be unstable, further testing required.