Add config option for when UserCache saves

This config option allows server owners to turn off saving of the UserCache each time it's edited. Instead, it will save at stop time. Use case: setting the user cache cap very high (20k, in my case) makes the server hang during the IO. By delaying saving to stop time, it prevents stalls that happen every time a new entry is added.