backends: Another step towards per backend event queue.

Now the backend has GP_BackendEventsQueued()
and GP_BackendEventGet() functions and examples
are chaged to use it.

Also the docs are updated.