make 'extract_preload_scripts' a class member function
Merge branch 'master' of https://github.com/wesnoth/wesnoth