Added Entity, which is exposed via script.
Cleaning up a lot of the native code; moved what I had thus far to script.