added mongo stuff and less middleware
added http request lib and restructured resources obj