Remove unused exit codes
Minor changes to the startup and shutdown code

- Update comments
- Close logs in LogManager destructor instead of relying on other code to do it
- Change return type of InspIRCd::Run() to void
- private: InspIRCd::CheckRoot()
- Change log message type of setgroups() etc. errors to "STARTUP"
- Load cmd_privmsg in PURE_STATIC builds
Remove dead code from the InspIRCd and CommandParser classes and typedefs.h

Removed functions:

InspIRCd:
- Restart() - unused
- DoSocketTimeouts() - no implementation exists
- AddCommand() - useless wrapper around ModuleManager::AddService()

CommandParser:
- IsValidCommand() - unused
- ProcessParameters() - no implementation exists
Use exit code EXIT_STATUS_SERVICE on Windows when exiting because of a service error
Remove limitsomaxconn and remains of m_halfop/allowhalfop
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
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.