Add firstrun/upgrade system