Fixing some node 0.11 compatibility issues.

While we don't explicitly support 0.11, these fixes will remove false
failures in the test runs so we can concentrate on actual test failures.

util.puts/util.error has been deprecated in 0.11, which means they'll
probably be gone in 0.12. Switching to using console methods instead.

Apparently error numbers changed, causing failure in the site-deploymentscript
test cleanup code. Testing for code instead of error number works across 0.8,
0.10, and 0.11.
Merge pull request #1217 from christav/node-0.11-fixes

Node 0.11 fixes