Merge pull request #342 from shenrie/master

Added related resource event and resource policy template
Refactored prepare resource framework