Improve Entity class

Among a bit of cleanup, this mainly adds type-safety and a better
representation of instances.

Also, switch from nose to unittest.

Signed-off-by: martin f. krafft <madduck@madduck.net>
3 files changed