Call the onload function whenever a module is loaded/reload.

Allows one to teardown whatever they setup properly when
the module gets a full reload. See example module for how it works.