Performance improvements for entity network controller, wrote beginning of CPS Hook implementation (is unused)

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>