Import Dulwich from zipimport archive.
Use local copies of some JS resources.

But then what about jQuery UI?