Added /clear and /refresh commands. Removed dead templates.js file no longer used.