Merge pull request #35 from MichaelThessel/ojs-stable-2_4

*8151* Added session_write_close as a shutdown function
Merge pull request #36 from MichaelThessel/ojs-stable-2_4

*8183* JBImages integration cleanup
[OJS.de] Fix memory leak in hook registry
*8247* Relax not null constraint
no such index setting_name fix
*8252* Correct ADODB 'get last insert index' function
*8252* Remove diffs from ADODB lib directory
*8291* Fix OAIUtils::prepInput call (OJS 2.4.x)