added generic buffer, added tkn grps

Added the Buffer template class that generalizes the cases of SourceBuffer and
TokenBuffer. Added the TokenGroup class which is used in the parser stages to
group up tokens. Uses the new Buffer template to create a token hierarchy. The
parser does nothing at the moment.