Martin Dubravka and Emil Krafth have both signed new deals that will extend their stay at Newcastle United.