St Johnstone set for American takeover after deal agreed