Moved player inventory replacement into the API

-Makes it a bit more "obvious" to modders
Fixed API imports
Work towards heraldry API and update