Changed debug entities to use the physicsentity class, fixed smart textures when not complete polygons and started on a "character" entity class

Signed-off-by: Sam Hellawell <sshellawell@gmail.com>