Adding helper functions to make HAR export easier

Hi Aldo,
I'm not sure if you prefer (1) a couple of small merges, or (2) one big merge, but here's hoping for the former. I already have some of the HAR export code ready, but thought it was better to keep these helper function in their own pull request.

Cheers,
-r