You can clone with
HTTPS or Subversion.
how would i be able to run this code under medium trust?
Probably the unsafe parts should be rewritten (at least).
I am afraid right now I cnanot dedicate any time to this issue, but I am more than happy to merge a pull request.