Enhance Message structure and functions.
Use new helper functions, and move feature flags.

 - replace malloc() with term_malloc()
 - replace strdup() with term_strdup()
 - move definition of _POSIX_C_SOURCE from makefile to individual source
   files
Update to use stdbool.h
Implemented recipient hash for sent messages.