General cleanup and addPin doesn't add a duplicate pin

if there already exists a pin for the application at a location, any
tags will be added to that pin instead.