Update API call ban logic

This commit allows for the ban amount and grace period to be tuned.
The defaults, for now, is to allow for 10 failed calls every 24
hours, otherwise the call gets banned.

Partial logging has also been added in order to track what is going
on.
Remove the link to messages

If a character has no mail, $message->messageID is undefined and
caused an exception