Added Entity framework.

This is (roughly) the Entity framework as I had it originally in C++. Here and there, some methods
have been changed due to the differences between Java and C++ (mainly operator overloading and use of templates).

My entity classes are under disastercontrol.entity.