Added template validation.

I've added support for validating templates such as those used by ng-boilerplate. Template code is wrapped in minimal boilerplate HTML and written to a temporary file. That file is then passed to the validator. I also added options to control which doctype is used and what URL is used for the validator. The latter applies to all usage, not just templates.