BOSH support for TSUNG (TECH-1044).

To use BOSH, you need to change the server config of tsung, instead of

<server .... type="tcp"  port="5222"></server>
you must use:
<server .... type="bosh" port="5280"></server>

Note that BOSH uses xmpp 1.0, one must use SASL to authenticate.
In the generated reports, a new graph is included, showing
the # of HTTP connections and requests made. # of requests should
be much bigger than # of connections, as we are using persistent
connections.

Reported network traffic includes overhead by BOSH/HTTP protocol for POST
request it *DO NOT* include the HTTP overhead for responses.

TODO:
	normal HTTPS sessions are broken, I need to add ts_ssl implementing
        the same API than ts_tcp, ts_bosh.
Use base64 module instead of ssl_base64

The later was removed from R14
Support for BOSH over SSL (requires R14 to work).

Add ssl support for BOSH sessions.  This requires R14,
as in previous versions the SSL module had bugs handling
http packets (wasn't fully implemented)
Add a new option to send xmpp version in stream header

Add a new option "send_version" to the jabber connect
request. If enabled, tsung will use version="1.0" in the
stream header (needed for sasl authentication) if not,
tsung won't send the version attribute (and legacy auth
can be used).
Process are not more mandatory to for transports

Previusly ts_tcp had to spawn a process only to be able
to transform the received packet into the one ts_client expect.
Now the API allow ts_tcp to transform the packet using a callback,
so a separate process is not needed anymore.

Also ts_bosh now counts received header size.
Support ssl sockets using the new tsung transport API.
[TECH-1153] Websocket support

Websocket relative URL MUST be /xmpp

Sample usage
-----
	<servers>
  		<server host="127.0.0.1" port="5280" type="websocket"></server>
	</servers>
Stop sending keep alive request once the session is terminated.

After the a request with type='terminate' is sent, do not send
more request on this session.
Fixed a couple regressions.

- tried to close a non-opened socket.
- there were still references to gen_tcp and ssl, though it's now ts_tcp and ts_ssl
Merge branch 'OAuth' into p1
[TECH-1154] OAuth support
[TECH-1154] Integrated most of erlang-oauth lib from https://github.com/tim/erlang-oauth for easier deployment.
added copyright notice on OAuth modules
rfc2617 HTTP DIGEST authentication
Debug code committed.
starttls XMPP support
Merge branch 'master' of git://git.process-one.net/tsung/mainline into p1

Conflicts:
	src/tsung/ts_http.erl
	src/tsung/ts_jabber.erl
	src/tsung/ts_jabber_common.erl
	src/tsung/ts_search.erl
	src/tsung_controller/ts_config.erl
	src/tsung_controller/ts_config_jabber.erl
	src/tsung_controller/ts_config_server.erl
	tsung-1.0.dtd
update doc
version 1.4.0
add missing file in tarball