Fix high CPU use on Windows when connecting to a server

When getting a write event for an EventHandler that wanted a single write only, remove it from the WriteSet (socketengine_select)

Fixes #556 reported by @WindowsUser
m_spanningtree FJOIN handler: Merge and take maxmodes into consideration when applying non-prefix modes
Fix Doxygen comments.
Merge pull request #564 from SaberUK/master+doxygen-fix

Fix Doxygen comments.
m_repeat Optimize the Levenshtein() function

New version uses 2 vectors instead of a matrix
Do not shrink the vectors even if the user sets a lower <repeat:size> than before, this is because longer lines may remain in the backlog
Prevent m_cgiirc from blocking indefinitely, resulting in registration timeouts on e.g. Mibbit when webirc is not used
Merge pull request #563 from ElementalAlchemist/patch-1

Prevent m_cgiirc from blocking indefinitely
Made the launch script aware of --runasroot, so it does not drop privs if this is specified.
Fix a few oversights

This partially reverts e0cb6bd46fb1d804ad6adea5688c844f7e1a0f6f
Replace hardcoded mode letters passed to IsModeSet() and GetModeParameter() with ModeHandlers, part 1
Merge pull request #569 from ShutterQuick/inspircd+asrootfix

Made the launch script aware of --runasroot
Allow for skipping clone checking before DNS is complete.
Merge pull request #571 from ShutterQuick/inspircd+checkclone

Allow for skipping clone checking before DNS is complete.
Remove $Core and $Mod* comments apart from $ModDep.
Remove detection of deprecated backticks which was added in 1.1b9.
Fix $ModDep failing to find application-wide include files.
Fix some missing newlines in the config header generator.
Fix users being able to set <server:network> to an invalid value.
Merge pull request #580 from SaberUK/master+restrict-network-name

Fix users being able to set <server:network> to an invalid value.
Merge pull request #574 from SaberUK/master+build-comment-cleanup

Clean up unneeded build system comments.