Merge pull request #19 from natural-law/master

Update the plugin protocols code & samples.