Fixed for newer PHP versions

You should call Mongo() with MongoClient() and session_register() is deprecated on new php versions.
Just needed small fixes to get things working.