Basic support for the PIM API

This allows MIDlets to use the PIM API to list contacts.
Quite the funky formatting here. :-)

Does any of this code come from another source that we should make sure to credit?