Allow either/all of:
 * contents (template)
 * args (template parameters)
 * result from a template
to be promises.
Allows synchronous widget.html call to retrieve the content.
Added test for browser widget render proxy.
Fixed coding styles.
Merge pull request #64 from troopjs/feature/async-template

Async template updates