A couple of integration fixes

Fixed code in study-configuration.php to use include file for filenames
and fixed latent bug in cookie reader to catch the value more
consistently