add option to set max thread count
get/set max. thread count in QgsApplication
change qsettings in qgsoptions, not qgsapplication
Merge pull request #1215 from etiennesky/mtr_maxcpus

[FEATURE] add option to set max thread count