Change to HTTPS
Fix weirdness with jws

Probably needs a better fix in the long run.