Keep track of ID's uses on the page, and make unique ones if there are repeats.  Resolves issue #240.
Merge branch 'issue240' into develop.  Issue #240.