Fixed AppEngine bug of HTTPS requests going out as HTTP (closes #356)