Add TextHeaders.getAndRemove(...)

See #2649 for motivation
I don't think an exception is the right thing here. I would even say that we should better change the return type to Long everywhere and return null in the case that it is not found. Sounds more sane to me.

@trustin wdyt ?