Make EntityCapsManager's node version configurable

Also some cleanup of caps code.