Start ListerHandle values at 1 instead of 0.

This change allows for uninitialised listener handles to be
recognised.  At the same time, change the type for listener handles
from 'int' to 'uint'.