Return 501 if eventhandler is unavailable.

Some small improvements:
 * Remove /name/event from uri, which we send to application in request
 * Create directory for logs in postinst.
 * Convert http statuses with httplib