Removed some traces and the isFunction check for BSONDocument
Updated authentication to be secure in neko