fixing settings, adding support to mongo uris
adding support to cors