Start implementing stat effect system

This system should allow implementation of various
effects on entities statistics, like poison. It is limited
for now, but should be improved soon.