fix reading compressed binary terms from Java

Larger compressed binary could not be decoded inside JInterface.

- applied a patch posted on erlang-questins in September 2009
  http://erlang.org/pipermail/erlang-patches/2009-September/000478.html
-> extended this patch as it alone was not enough to fix the bug

Problem was that when reading from an InputStream, you can only specify a maximum number of bytes to read. Java doesn't quarantee that it actually reads this many bytes - it could be less!
This patch now reads up until the expected size bytes. If there are more than expected, the actual number of available bytes is not printed (we probably shouldn't read the additional bytes, security-wise - the erlang external byte representation is broken in this case though).
add (de)compress roundtrip tests with larger values
Fix bug when making nsis target
Fix printing the empty binary at depth 1 with ~W

A case clause ordering problem is causing the empty binary to be
printed as <<...>> rather than the correct <<>> when using ~W with a
depth of 1. Add new tests to verify correct behaviour.
Remove unused files from old native dns resolver
Fix release_handler:find_script so it can read regexp in appups
inets: Remove dbg tracing from testcases
Have supervisor send errors up the chain

If a child fails to start, supervisor relies upon error_logger which does not
work when IO is inhibited. Instead pass the error up the chain and let someone
else use a proper Reason for any possible printouts.
SCTP test case with socket active options once and true

Test case for testing socket option {active, true} after
association is peeled off.
Set new peeled off SCTP socket to nonblocking socket

Peeloff feature of SCTP association creates a new socket which is not
set to nonblocking.
Function for receving data is shared with udp which has a default
loop when reading packets which is set to 5.
Calling the receive function more then once, is fine as long as
there are more data to receive or socket are nonblocking.
Set new peeled off socket to be nonblocking to prevent a erlang vm hangup.
Fix the contract of erl_ddll:format_error/1

The bug in the contract of erl_ddll:format_error_int/1 in R15B that
was copied to R16B (OTP-9862) has been fixed.
Under Unix enable TCP_NODELAY to disable Nagel's socket algorithm

Under Unix enable TCP_NODELAY to disable Nagel's socket algorithm
(Removes ~40ms delay on Redhat ES 6).
Merge branch 'egil/remove-unused-files'

* egil/remove-unused-files:
  Remove unused files from old native dns resolver
Merge branch 'egil/inets/remove-tracing-in-tests'

* egil/inets/remove-tracing-in-tests:
  inets: Remove dbg tracing from testcases
test_server: Refactor timetrap_scale_factor/0
test_server: Let start_node/3 utilize scalefactor

 * test_server_node:start_node/3 now uses timetrap_scale_factor for
   timeouts (peer nodes)
v3_codegen: Don't duplicate the functionality of cg_reg_arg/2
v3_codegen: Clean up comments and remove out-commented code
v3_codegen: Clarify code generation for binary construction

Add some comments to make the code generation for binary
construction somewhat clearer. Also get rid of the cg_bo_newregs/2
function that serves no useful purpose. (It was probably
intended to undo the effect of cg_live/2, but note that the
value passed to cg_bo_newregs/2 has not passed through cg_live/2.)
beam_utils: Check liveness in catches and try/catch blocks

Less conservative liveness analysis allows more optimizations
to be applied (such as the ones in beam_bool).