Nobody on here will be able to read the script you posted and decide if you've been hacked or not
The chances of being hacked are low IMO. Macs are pretty safe.
I'd just change passwords, turn on filevault, reinstall mavericks, etc
As far as whether or not you got hacked, there is no one here who is knowledgable enough to read the code you posted to tell you.
So we don't know if you should report him or not. I'd just report him to be safe.
Then let him play defense.