add checks for record size. needs better errors still
Merge branch 'dev' of https://github.com/EventStore/EventStore into dev