adding mongoose wrapping for http access
merging from master