Added loading local contacts and calling identity lookup on them. Fixed some data model and ui bugs.