Permission checking of memory region

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

Permission checking of memory region