Fix crash in LuaInterface.

Fix for loading lua values where an empty stack could be accessed and
cause a seg fault.
added openWebPage method
Fix for variables toggling their status when the user clicks away from it.
Homebrew now uses lua 5.2 by default.

Explicitly require lua 5.1.