Lua review

As with previous PR each individual commit should be self explanatory

each commit's message can also be used as makeshift documentation

to test, you only need two lines in your rc.lua


dt = require "darktable"
print(dt.debug.dump(_G,"Global environement")