Compile the rule application functions
Add authoriships and referrals patterns
Merge pull request #31 from cosmoharrigan/rule-engine

Compile rule application function. Add authoriships and referrals patterns.