An evolutive financial market model with animal spirits: imitation and endogenous beliefs