refactored the ngx-lj-lua-stacks tool and moved most of the code to the luajit tapset module for better code reuse.