Properly parent the "Render" and "Project Settings" dialogs

This ensures they stay on top and that they work even in fullscreen mode
Refactor project.py and render.py to have cleaner init methods