Refactored getDestroyAP

- Split the calculations into getAttackApGain. Allows for other
functions to get the AP data.
- Renamed to getAttackApGainText as it isn't just destroying it is also
capturing. Originally the method only calculated the destroy values.
Fixing nits
nits - object field whitespace
Merge pull request #234 from ShawnTuatara/getAttackApGain

Refactored getDestroyAP
fix #216
player tracker ignored destroy resonators, even though it should only ignore destroyed links. Fixes #238
Merge pull request #5 from breunigs/gh-pages

Rebase from bruenigs/ingress-intel-total-conversion