Add activity factory class to support the activity template document and
instance registry.
Add unit test case for activity factory.


Signed-off-by: Yin MingJun <yinmingjuncn@gmail.com>