Basic support for the PIM API

This allows MIDlets to use the PIM API to list contacts.
Should we expect any issues because of this UID truncation? If so, we should at least comment here about why we're doing it.