cleanup

-added config.js
-added queries.js
-added templates.js