[fix] Correctly clean setTimeout during destroy. Fixes #1
[fix] The returned client for HTML should be a function which returns the template.