Two commits to fix errors with tools/updateResCount.php

One was due to the file moving and the wrong path to capricornLib.php as well as functions that were defined in both files.

The other updates fix getExamCodeData calls to use the newer format.