Dynamics of a vesicle in general flow