Add Lua on_mapgen_init callback, and minetest.set_mapgen_params API