Move creating EventReader to the library

Before this commit parse took an EventReader. Change so that it takes a
Buffer