Merge remote-tracking branch 'singu/master'
Work in progress

This work extends AIStateMachine to run multiplex() in the thread
that calls run(), cont() or set_state(). Note that all three
eventually call locked_cont(), so thats where multiplex() is called
from. Calling multiplex() means "running the state machine", as in
"calling multiplex_impl".

Currently only LLURLRequest uses this feature, and then only
for the HTTPGetResponder, and well only for the initializing,
start up and normal finish states.

A current/remaining problem is that we run into a situation where
the curl thread runs a statemachine to it's finish and kills it,
while the main thread is also 'running' it and tries to call
multiplex while the statemachine isn't running anymore.
Bug fix: remove remainder of test code
Revert "Work in progress"

This reverts commit ef35aa795420714ff5138e8068544eb18a161de4
because it contained too much wrong things that I won't be
using. I'll re-commit stuff from it after that that I do
want to keep.
Fix initialization list order.

Also fixes a Dout line and initializes mState to 0 so
that if ever set_state would be called first from
a non-main thread then it will be larger (probably
not needed currently).
Removed two unnecessary states from AICurlEasyRequestStateMachine

Removed AICurlEasyRequestStateMachine_added and
AICurlEasyRequestStateMachine_finished because the state machine is not
taking any action there anyway, and those states might be skipped all
together even, so they make no sense / shouldn't exist.
Assertion bug fix for libcwd with dc::curl on and curlio off.
Renamed AICurlThread::mWakeUpMutex --> AICurlThread::mWakeUpFlagMutex
Make AICurlThread::wakeup_thread thread-safe.
Tell cmake to only search paths we tell it to
Add support for xdg-open.
Some CMake Cleanup

Clean up leftover SERVER and VIEWER from when they were a single tree
Fixed debian multiarch cmake
Small bits of OSX cleanup
Fix warning on non-windows platforms about unknown pragma
Remove LLMemType and related files
Merge remote-tracking branch 'Lirusaito/Canon' into Cupcake
Fixed uninitialized warning in hacd
General cleanup of unused variable warnings
Fix rigged mesh stack smashing
Make the actual skin folders lowercase
And now it actually compiles...