Removed nor clause from query since it's not going to be used
Created buildScope and doMapReduce and added the mapFunc JavaScript for MapReducing.
Fixed up tests to test both query and scope
Made serverAddr a test flag
Cleaned up session and db/collection handling