The preview button and permalink editor are automatically added to the write post screen after the first autosave. Props to filosofo.