Add ability to template the time in a wait_template for the timeout: option

It would be useful to be allowed to template the “timeout:” option in the wait_template of a script.

timeouts aren’t always necessarily able to be hard-coded.