[libcontacts] Move import logic to libcontacts for sharing

Should be used by the batch importer and the GUI importer.
Merge pull request #50 from matthewvogt/importer

[libcontacts] Move import logic to libcontacts for sharing