Import source.
Add memory management. Move string functions to string.h.
Fix commandline to build tests.
Fix realloc to use new memory manager.