Added JNDI factory object

Have put in some code to allow a MongoClient to be exposed as a JNDI resource. Tested on tomcat 7.