Got rid of memory.h and renamed safe_* to ca_*

 * safe_malloc -> ca_malloc
 * safe_memdup -> ca_memdup
 * safe_strdup -> ca_strdup
 * ARRAY_GROW  -> CA_ARRAY_GROW

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>