Gravar-mail: Modeling habits as self-sustaining patterns of sensorimotor behavior