Moved a lot of player inventory functions to entity.h; started working on activity-handling.