Upgraded Debian template to 7.6 and did some work on Ubuntu 12.04 template.