PHP pastebin clone ported for mongodb