simplify

This simplifies the code significantly, removing the proxy module and handling it with a callback sub.

Also includes a small fix of checking -f on files.  Handles to things that aren't files may report true to -z but still return content.