Relogin: trim(u_key), MILF: save layers to JSON.