Fix some LUA errors.
Add debug code, move item window UI elements into a new itemWindow subtable.
[Items] Fix some more bugs