Add onEvent methods to Template

Add `Template#onCreated`, `Template#onRendered` and `Template#onDestroyed` methods. These are better than assigning `Template.rendered`, etc properties as you can add more than 1 of them w/o overriding previously added event handlers.

Ran test-packages for Blaze.

@avital @dgreensp
Ditto above.