Make prosody executable

Automated merge with http://waqas.ath.cx/

Added a FIXME

Improved the regexp used to parse the client response a bit. Authenticating with non-ascii realm values now works.

Fixed logging in datamanager

main.lua -> prosody

Merge from waqas

(0) -300 -100 -30 -10 -7 +7 +10 +30 +100 +300 +1000 +3000 tip

mercurial