controlpanel.cpp: Increases general verbosity of command results.
controlpanel.cpp: Standardize error wordings

When a network cannot be found for a user, and where a command will output an error under such circumstances, use similar wording in each message.
controlpanel.cpp: Fixed a Fail to Compile error introduced in prior commit.
Fix PartyLine so that forced channels may not be left at all - users will be rejoined at once.
Merge commit 'refs/pull/295/head' of github.com:znc/znc
Catch as references
Merge commit 'refs/pull/303/head' of github.com:znc/znc
Cleaned up more warnings.
Merge commit 'refs/pull/304/head' of github.com:znc/znc
Fix issue introduced in previous commit.
Explain that altering znc.conf by hand is a bad idea. Fixed a typo.
Remove unneeded headers.
Add a generic threads abstraction

This should make it easier to work with threads. It provides classes for mutexes
and condition variables. Additionally, there is a special CMutexGuard that
automatically unlocks the mutex on destruction and a CThreadPool class.

This thread pool is used to replace the thread pool in the sockets code.

Signed-off-by: Uli Schlachter <psychon@znc.in>
CJob: Add a way to do stuff on the main thread

This just moves the pipe from the socket code to the thread pool. However, now
all CJobs can use this and there is a single place for them to get deleted.

Signed-off-by: Uli Schlachter <psychon@znc.in>