Various fixes for past refactoring/file reorg.
Various function name changes. Added: Ajax.js
Touchups: Template.js
Various typos.