Allow any variable in status.log to be used in action template

Quick hack to allow access to any variables in the host/service blocks in status.log

Any variables that don't exist just get replaced with an empty string.

Only done some basic testing but it appears to work. Just putting this out there for discussion.