added related config fields, including HASTIC_EXTERNAL_DB that enable using MongoDB
added authentification to data base
added mapping to collections in db
added synchronious way to connect to db. autoamtically reconnect enabled.
Current state
previous way with NeDb works. if user enable HASTIC_EXTERNAL_DB hastic will crash.
In second iteration need make fabric method that return according implementation because NeDb's interface supports only callbacks not promises, but MongoDb interface supports promises.
First iteration of MongoDb integration
Changes
HASTIC_EXTERNAL_DB
that enable using MongoDBCurrent state
previous way with NeDb works. if user enable
HASTIC_EXTERNAL_DB
hastic will crash. In second iteration need make fabric method that return according implementation because NeDb's interface supports only callbacks not promises, but MongoDb interface supports promises.