Cleaning out some dead code.

This adds a small compile error, to be fixed in next commit.
New action: ACTION_PLACE_AVATAR. Add Lua functions:

- entity_getBoneLockData()
- entity_getWeight()