BeeHub_Registry now also uses mongoDB instead of mySQL

This was the last piece of mySQL that was in BeeHub!
Squashed two bugs. Most importantly, one where I forgot to delete the mongo document when deleting a file.