[dcarley] Modularise dock resize and restart.