Pgb integration

have a look - I'm going to have a quick look at what I'll need to change to make download PGB apps work using your content sync code.