Basic testing framework for javascript client

QUnit testing framework
Restructure thermoapp as ERB templates - partial

Partially implemented but all tests passed and basic ERB template system
workign.