Fixed complex expressions failing to auth (LP#14997438)

Created new function `extractOrgId` that recursively pulls the org id from all segments of the given expression and returns them in an array. Now checking that all returned org ids are the same before testing that value against the signed request.