HTTP + JSON document database with Map Reduce views and peer-based replication