finishing up the active directory service

also did some file cleanup, todo cleanup and began the mongoose api