Allow CPU utilization to be limited.

With the new versions of Plex Media Server and the Generate media index files automatically option checked. CPU utilization  can be very high.  I suggest a limit be allowed to be selected.   It's a background process so it should be OK for it to take longer. During initial indexing or after a large number of files are added even if this option is not selected it would be  good to limit CPU utilization.

I slightly disagree. I want the media index process to be a background process that is separate from the media scan process. I don't want the media scan to take any longer and make me wait more than necessary for new-media to be detected and listed so I can immediate check the proper tagging happened.

Once media index generation is an asynchronous background process a 20 niceness and Idle ionice would be fine. Also, once it's a asynchronous process I would like it to work the On Deck queue first, then everything else with more recently added first.

Early 2021 clean-up: implemented (option to run maintenance tasks with lower priority)