move all gui2 lua bindings to their own file
add a null pointer check
move gui2 dialog lua functions to the lua kernel base
Merge branch 'master' of https://github.com/wesnoth/wesnoth