Fix crash in LuaInterface.

Fix for loading lua values where an empty stack could be accessed and
cause a seg fault.
Merge branch 'release_30' into release_31

Fix crash in LuaInterface.
Switch to using QPointer for the debug console.
Use QPointer for all of the pointers to Host in other types.