Integrated fixes, anti spamming system, compliance

Integrated some fixes from main forge and be more compliant with PEP8
now.
Also added anti spamming system with burst/cooldown and simplified some
things (e.g. simple array instead of dictionaries where index begins
from 0 and hasnt big gaps).

NOT TESTED