[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
[backend] always return from lastnotifications

even with empty results, otherwise the clock daemon will run out of
threads too quickly