Support partial AIDs when opening a channel, and add selectNext() method so that web application can iterate on a set of applications (eg for discovery purpose).
Fixes #1