Generic extensions

Altered mapping to new extensions fields and added a bash script to uninstall templates