Fixed some test code that was left in.
Fixed missing unload_input_helper().
Added XOpenDisplay failure checks to prevent segfault.  This code still needs some work as it will never recover and does not fail.
Moved input helper load/unload to the hook thread.
Added copyright and init cleanup to windows dll main.
Moved input helper load/unload to the hook thread.