Firstbranch

Just the very first bit of the login manager code (did this prior to upload manager just to learn the basics of the mongodb/node methods being used without worrying about further io).