Moved all contact management into new Contact class.
Delete raw contacts when they are marked for deletion
Fix many bugs reported by FindBugs & Android Lint