Added trigger function and afterLogin event

Also added protected variable $_eventManager that is set on initialize