add $module context variable
Add the ability to call a dispose function when module is removed. Bump version to 0.5.0.