fixing minimum timing bug on StudyPic
Interim commit... DO NOT TRY TO RUN THIS REVISION ALONE BECAUSE IT WILL NOT WORK
All trials can be post trials
all 13 conditons working again,

cleaned up settings.php,
cleaning up code base to follow zend coding style guide,
changed most files from tabs to using 4 spaces in place of tabs,
changed !DOCTYPE to html5 tag
streamlined stuff in login.php
whoops, working again