Added HAR generation as inline script

As promised yesterday, this one goes open source ;)
Usually you'd be right, in this instance however it's necessary to set them as attributes on the class in order for them to be visible internally later on. This is due to HAREncoder (the base class of HAR.log) setting __getattr__ as synonym for __getitem__.