Fix body writer spec
Refactor body type validation
Merge pull request #136 from tarcieri/refactor/request-body-validation

Refactor request body validation