IDE: TProject.LoadFromSession is never called with prfLoadParts flag, remove test.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45631 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: simplify code for getting package version in compiler options import/export.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45632 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: refactor, remove TProject.SaveBuildModes.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45633 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: refactor TProjectBuildModes.SaveToXMLConfig.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45634 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: refactor TProjectBuildModes.SaveToXMLConfig.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45635 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: refactor TProject.SaveUnits.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45636 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: refactoring and cleanup for load/save BuildModes.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45637 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: Implement import / export for compiler options of all build modes.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@45638 4005530d-fff6-0310-9dd1-cebe43e6787f