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'
Merge remote-tracking branch 'upstream/master'
Merge remote-tracking branch 'upstream/master'
LoadWindowPosition has a better default position

LoadWindowPosition now positions the window on the nearest monitor if
the window is not inside a monitor.
Merge pull request #130 from mmbob/master

Save window position when closed