Added InvokeTemplate
Made DispatcherId constructor public to support dynamic Id's