Add mongodb authentication support, addressing issue #14