Atomatic Reference Counting Update

Updating the core framework (and the maps example) to ARC compatible formats.