Lightweight Rack middleware for AWS SNS endpoints