Added WITH_DEBUG_RDPEI CMake option.
Added DEBUG_RDPEI debug print command.
Added proper resource cleanup code.
Added proper thread shutdown.
Added multitouch update sample rate limiter.