[bugfix] Avoid dupliate reference names
[bugfix] Avoid dupliate reference names

The old implementation failed if there were autogenerated references
not starting with 1. Now an iterator was implemented which creates the
next unused number (upto 999 but this should be enough)

Other improvements:
- always use double quotes with references
- modify pattern to find single quotes in reference names
- remove regext o clean title (\s includes [\n\r\t])
- rename self.NAMES.match(params) to found
- use removeDisabledPart function only once

Bug: T278040
Change-Id: Ie082dea4334e62f6818a208b86704b3a8afcd0ad

wikimedia/pywikibot-core,wikimedia/pywikibot-core