Handle pad template in the baseclass
aggregator: change prototypes for pad_query and pad_event.

Also downgrade debug and add prototype for clip vmethod.