Adapted to changes in attoparser APIs.
Finished changes for adapting 2.1 to AttoParser 2.