add headers convenience function to rock.request

Acked-by: Rudi Grinberg <rudi.grinberg@gmail.com>
added middleware example