Added framework for derived entities and manifest classes

Also require rapidjson
see https://code.google.com/p/rapidjson/