Widget registration

Added automatical isntall/uninstall of dynamic widget and its templates on module installation.