Added a log call, when a hook dies

Instead of just croaking, the error message gets logged as well
Changed test to use Plack::Test
Simplified test

Now, that the test is not using Test::TCP, but Plack::Test I could
simplify the test by simply capturing the stderr instead of logging into
a file and checking its content
reflect change
Merge branch 'pr/die_in_before_hook'