Added partial tests for Proxy, including all handlers.

Also fixed some small bugs in build.js.