Fix for "“Invalid signature file” when attempting to run a .jar":
http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar
Biiig commit, finally catching up with commits for the new refset version. Will have much smaller commits from now on. Not done adding all template changes yet.