Count attack, destroy, heal action of collector

This will be used to give player achievement.

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
Rebalance rune's stats

Give atk and def to rune, increase default hp as 100.

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
Adjust attack algorithm

Now, damage for rune and attacker is calculated seperately.
for rune, attacker's atk + random point less than attacker's atk * 0.1
vs rune's def + random point less than rune owner's def * 0.1

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
Add rune, attacker's name on gcm push

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
POST /collector: fail if same id collector exist

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
PUT /collector: Do update

PULL did not update. It was just do things same as POST.
Now, really do update.

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
main: clean up code

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
Remove unnecessary code

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
Move code into appropriate function

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
Avoid attacking when attacker's hp is 0

Signed-off-by: SeongJae Park <sj38.park@gmail.com>