First patch to term.js
term.js : Hooks for 'magic' escapes handling
term.js : Reduce bitshift for magic attriutes to fit max JS size (32bits)