Setup testing environment and resolve issues.

Setup testing environment to use Testacular and Jasminejs.
Refactor test suites to use Jasminejs syntax.
Change mustache to be a development dependency.
Refactor the mustache sanity checks so that in a Node environment mustache will be attempted to be required.