ARC Migration

This migrates the framework to use Automatic Reference Counting.

The test app isn't migrated yet.
Can you delete `TerminationListener *termListen =` instead?