an Entity at the root of the hierarchy would cause problems in many places i think.

an App which is not root is treated as just a normal entity i think.  the fact we've already added it shouldn't be an issue (the JS ignores it).

i wonder, should the App/Entity class distinction should be retired?

also -- any other comments on this PR ?