Added ua:dispatch-event() function.
Finished adding ua:attach-template().
Added ua:dettach-template() function.
Added ua:get-template() function.
Added ua:update-template() function.
Added two new external variables.