Add self-signed localhost SSL certificate and key
Add very simple patch test
Add client server patching

I've never seen so many hacks in one file.
Add error listener to test
Use quevent
Add note to patch.js
Expose .patch
Actually working stuff