use more of the new api in ezproxy
remove closure magic

The code was kind of unreadable, removed the black box stuff
rearrange code

less magical now
Merge pull request #32 from metridoc/improve-ezproxy

Improve ezproxy