Get real status code instead of hardcoded 500

When event is an exception, get the real status code instead of always returning 500
update tests to handle varying status code
Merge branch 'master' of github.com:m-barthelemy/logstasher into m-barthelemy-master
Fixed merged conflicts for pull request #11