Changed FunXMPP port to 443

Should play nicer with proxies and firewalls
Added media upload and send events

Should help with #485
Fixed output formatting in HTML

No more "help I get response tx rx tx rx tx rx rx rx tx tx"
No more inner rage for me
:-)
Added onLoginFailed event

Capturing this event can prevent you from talking to a closed connection
like a retard
Removed legacy code

Replaced by new nodeString HTML formatter