asn1rt_check: Fix transform_to_EXTERNAL1990 for binary input

If ber_bin is used, decoded EXTERNAL types will include a binary
Data_value in the {'EXTERNAL', ...} tuple.  When handing such a tuple to
the encoder again, we should properly encode it.

To do so, we treat a binary data part just like a list data part.
Make erlang-mode more compatible with package.el

Package.el  and Emacs  package  repositories (like  ELPA or  Marmalade
place some requirements onto packages which are uploaded to them. This
commit does  minor cosmetic  changes which makes  it easier  to create
appropriate package file for those repositories.
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).
Encode fix

The header is used when incrementing counters. Sending answers in
the list form was broken because of this.
Fix various code typos for R15B02
Fix various doc typos for R15B02
extend re back reference syntax with \g escape sequence

Add the \gN and \g{N} syntax for back references in re:replace/3,4
to allow use with numeric replacement strings.
erlsrv: gracefully stop emulator on Windows shutdown

Windows will send the SERVICE_CONTROL_SHUTDOWN event to the service control
handler when shutting down the system. Instead of ignoring the event, erlsrv
will now invoke the stop action.  Likewise, the Erlang emulator (and it's port
drivers) must not quit upon reception of the CTRL_SHUTDOWN_EVENT event in the
console control handler.
Fix support for leap seconds-aware timezones

erlang:universaltime_to_localtime is leap seconds-aware (since 2008),
however erlang:localtime_to_universaltime is not, which gives
surprising results on systems configured with leap seconds-aware
timezones:

1> erlang:universaltime_to_localtime({{2012,1,1},{0,0,0}}).
{{2012,1,1},{0,0,0}}
2> erlang:localtime_to_universaltime({{2012,1,1},{0,0,0}}).
{{2012,1,1},{0,0,24}}

and completely breaks calendar:local_time_to_universal_time_dst:

3> calendar:local_time_to_universal_time_dst({{2011,1,1},{0,0,0}}).
[]

Signed-off-by: Piotr Sikora <piotr.sikora@frickle.com>
Update a URL

the old one (http://www.erlang.org/faq.html) is 404.
[reltool] Add option {excl_lib,otp_root}

With this option reltool will create a target structure with only the
applications found in specified 'lib_dirs' (on system level) or
'lib_dir' (on app level). Erts will not be included, and no
applications found under $OTP_ROOT/lib.
[reltool] Add documentation for option 'excl_lib'
Prep for R15B02 release

OTP-10199
Fix counter typo
Count incoming answers containing AVP decode errors
Fix result code statistics for arbitrary dictionaries

The code assumed the common dictionary, which was just plain wrong.
vsn -> 1.2
Allow multiple transport_module and transport_config

Transports are started one after the other if a connection is
not established with the timeout that can now be specified
with transport_config. For example, try an SCTP connect first,
a TCP connect if it doesn't succeed.
Add diameter_transport for transport start indirection

Module contains a transport start function that calls an a
specified function, and more.
Update documentation