A fork of Steve Streeting's BitBucket example (https://bitbucket.org/sinbad/privilegedhelperexample)