some litle code cleanup and a script for storing things in a mongodb
added gitignore
code merge from server code hacking
I hope it works now