Small refactoring of error handling.
Fixed requirements.
Merge pull request #28 from apiaryio/hj/more-error-handling

Error handling tests & fixes & small refactoring