Fix handling of angle brackets in mod_muc_log when outputting plaintext

Previously, nicks surrounded by angle brackets (see Nick2 on line 323)
were being lost when outputting plaintext, because htmlize() was ignoring
them then fw() was stripping them as HTML tags.
Support middleware and module option configuration in ejabberd_cowboy
Example config for running a static file web server

This should provide equivalent functionality to mod_http_fileserver in
P1 ejabberd.
message carbon implementation. update 1
Merge branch 'master' of https://github.com/esl/MongooseIM into gsoc2014-message-carbons
Merge branch 'gsoc2014-message-carbons' of https://github.com/shambhuprasad58/MongooseIM
message carbons update 2
message carbon update 3
Merge branch 'master' of https://github.com/PaulSD/ejabberd into cowboy-0.9

Conflicts:
	apps/ejabberd/src/ejabberd_cowboy.erl
	apps/ejabberd/src/mod_metrics.erl
replace `safe_whereis_name` with `whereis_name`

fixes #58
replace timer:send_after/2 with erlang:send_after/3

fixes #95
add jabber:client namespace to stanzas sent over BOSH

fixes #168
escape xmlcdata before sending to socket

fixes #203
use the newset commit from seestar - #217
fix accidentally removed config
fix accidentally removed config
Fix typos, resolves #205
fix indentation in mod_bosh_socket.erl
removed nested cases and added new function for it
Indentation correction