Refactored repository config.
Added MongoDB support.
Added cloud config for MongoDB. Added Postgres support.