Fix ERROR handler erroneously requiring userprefix
Move things aroung a bit, reduce dependencies
Add masking support to Lua support library