[#10] Initial implementation of state machine and entity system and an example program.