Initial commit from code based on aaronweatherall/mongo