Move get_buffer_requests into rust-layers from Servo

This is generally useful and layers now know how to get their own
BufferRequests.
It seems like the nesting here wouldn't be too bad if this were just a plain match, rather a match with an early return defining a local.