Fix some document typos
Make xmalloc functions faster and more robust

Make the memory header have two size_t rather than two int.
Remove redundant locks and asserts
change malloc/memset to calloc function calls
Merge branch 'slurm-14.03'