Added apr(Apache Portable Runtime) support and test code.

Signed-off-by: shines77 <gz_shines@msn.com>