Add unload hook which gets called before a controller is unloaded.
Fix Handlebars helper pathFor and urlFor params bug.

You can optionally pass a parameters object as the first parameter. By default
these helpers will use the current data context for the parameters object.