Rough in dynamic memory handling,
allows library to be used standalone and
with pgsql
Memory management functions needed for
dynamic memory handling.
Get build working with cunit
tests in place.