added map reduce. moved mongo scripts.