Adds application initializer to persist user and auth with token