Replace __ImageBase.  Save + load window position.

Instead of using the __ImageBase global variable, use the
GetModuleHandle(NULL) function to get the exe's HMODULE/HINSTANCE.
Save the window position when the game is closed and restore it when it
is opened.  Defaults to being centered on the desktop.
Fix reading hexadecimal in TPTScriptInterface

Instead of subtracting 'A', subtract 'a'