Updated deployment script.
Fixed icon in help dialog.
Some more tweaking to template loading code. Also added some backward-compatibility fixes.