Add CoTaskMem functions
Move CoTaskMem stuff around and add a few missing commas.

Signed-off-by: Peter Atashian <retep998@gmail.com>