Altered copy in/out operations so that only one copy can be created of a file in mongo gridfs.
Altered copy in/out operations so that they read database connection information from the rite client.
Added license header.