Added HAR generation as inline script

As promised yesterday, this one goes open source ;)
I believe this can only happen in upstream proxy mode, where the first request is a `CONNECT` request (which is not hidden/swallowed by mitmproxy in this mode). Hard to say what's the correct way here. Probably not too bad to keep it separated though, you are right.