add mongodb support
RED: connect to the MongoDB; store sessions at it
GREEN: fix the testing conf; fix shutdown sequence