Made ubuntu specific part properly ubuntu specific
Added logging to the API and switched to the one mirror command that does everything (and also doesn't leave things in a screwed up state)
Added missing file