Migrated code to ARC and fixed some retain loops

Migrated code to ARC and fixed some 'strong' @property definition induced retain loops.