Improved type handling in the runtime.

1. Added a new header to store all types (including the typedef
definitions of structs).
2. Wrapped storymaster's includes in extern "C" if __cpluslus BECAUSE
GRR LINKER MAD LINKER RESOLVE INCORRECTLY WHEN C++'ING.
Various cleanup and compile fixes to the runtime.

1. Compiles and runs now!
Simulator now malloc/frees all memory.
Improved memory management in the runtime.

1. Scenes now store a copy of the filename+name.
2. Added a safety memset after an object is free'd.