refactored web code
little query refactor
working aggregate
mapreduce query
implemented mapreduce api