Lots of lua work for getting lua GUIs running ... been lazy commiting, sorry