Tidy up REQUEST preparation code,
Move scatter gather access to SGList* functions
Move mapping memory to seperate function
Reduce unneccessary local variable usage

Signed-off-by: Owen Smith <owen.smith@citrix.com>