Localized states, self-pulsing and excitability in VCSELs and microlasers with saturable absorber