Moved functions to entity members where appropriate

Some functions were skipped for now because they may need a new name
or change of behavior.

WIP: Example not updated yet.