Added memory management functions

Signed-off-by: Brian McGillion <brian.mcgillion@intel.com>
Merge pull request #8 from Open-TEE/memory

Added memory management functions