Yeah that was definitely a rather mysterious hack. Anywho, maybe have a look at DocumentServer:
DocumentServer