move system.h to include
move stream.h to include, and type-generator to src/tools
move java-specific declarations out of common.h
begin splitting up type-generator