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.
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
Update README.md
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 typos, resolves #205
fix indentation in mod_bosh_socket.erl
Fix MUC sending history "since", fixes #209
Includes API change in `jlib`
Use additional test case for MUC history since
Merge pull request #216 from esl/small_fixes

Various fixes/changes
use cowboy 0.9.0

freeze some other deps also
Merge pull request #210 from esl/cowboy-0.9

Cowboy 0.9.0
Merge pull request #219 from esl/muc_history_since

MUC history since fix
Use ejabberd_tests 2.2.2
clean mod_register opts before starting the module

fixes #117