Add support for 3-legged signing

This enables 3-legged signing of media delivery requests and thus fixes issue #58.