[api] add a events models - one class per event

The api pulls /lastnotifications from backend and sends its own
events and the backend notifications back to the backend under