Paste: fix save state tracking for downloaded files
Window manager: auto-calculate main window size and placement relative to monitor dimensions

Only relevant the first time PD is run; after that, the last-used
location will obviously be used.

This indirectly fixes an issue on 1024x768 resolution where the bottom
elements of the tools toolbox would be hidden by the task bar.