* Updated Semaphore::cancel() to clear the semaphre count.
* Added HTTPMessageQueue::clear().
* Updated HTTPServer::stop() to cancel the message queue.
* Updated Thread class to use a mutex lock.