#392: Fix secure http contexts so that they return nicer errors

And also avoid going through other servlet handlers, as the response is not committed.
Rename SecureContext to GitSecureContext for homogeneity