golang/template: using pointer to connect signal callbacks

using pointer instead of structure to connect signal callbacks.
this will cause Connect*MethodName* to hold a reference of *obj*,
so users should be call the method of Destroy*Name* to destroy obj
when no need using the obj.

Change-Id: Icfa50be6ed49e7e6a0fc2dc05cab725734777669