State saving in a Lua script for FSUIPC

I made a Lua script for the registered version of FSUIPC to save and load states of an aircraft. Needed that for my bush planes.

Please feel free to use it as you like. Please let me know if you find any bugs.