JCLOUDS-599 ability to execute function locally before initScript runs.

modified the templateOptions to except a predicate that will execute just before the initScript runs passing the node information into it.