Lua script binding

Based on the work from @Gambini as originally submitted in PR #49