Library: PIM code review modifications.

http://jira.mosync.com/browse/MOSYNCLIB-47