[RFC|WIP] Added functionality to set tr(uncated)-bit or truncate the res...

...ponse from lua

Please check out the code and yell on me if i've done it wrong.