rename main to index.js, keep db and modules out of git
proper ajax, json parsing
Merge pull request #1 from bhurlow/master

ajax (merged with brian)