Returns self from listener function and adds http test back in
Adds support for start and end offsets to buffer.toString. Fixes #448.