Make lcd text persist properly

Previously the screen cleared when a) the server shut down, or b) the player moved out of range.

Also updates deprecated minetest.env lua api calls to use the up to date equivalents.