This code was being generated in both Vulkan-ValidationLayers
and Vulkan-ExtensionLayer. Further uses are on the horizon so
lets stop the copypasta.
Also, add functions to manipulate extension lists and pNext chains,
since many client layers have been doing that themselves.