Added a :current_instance helper method that can be used during template processing to refer to the instance the template is being processed on.

This simplifies a common code pattern of searching through the instances list by host name.