Fix little bugs. Review of states id, and templates access. Add put, head in data.js