Improve EID handling - support "abbreviated" local node ID
This makes us support local node IDs such as dtn://node.dtn
and ipn:1
and adds a couple of other safeguards such as checks for NULL
returned by strdup
and EIDs longer than INT16_MAX - 1
in the EID handling functions. See individual commit messages for details.