Move the phpunit.xml into tests to avoid other testcases in the library, and added the resource support.
Added the clips string resource handler and added the template function.
Added the tpl resource handler and added the usage template.