alf_queue: implement funcs for query queue elems/avail/empty

Added function for querying the ring data-structure:
 alf_queue_empty()
 alf_queue_count()
 alf_queue_avail_space()

And doc/explain purpose of tail a little better.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>