Add the state name generator tool.

Each time a .states source file is updated, it can be used to generate
XXXStateName java source file which represents the enumeration class of
all state names of the controller XXX.

Note that if the XXXStateName java source file generated is updated
after generation, the tool will detect that the java file is newer than
the .states definition file and will not be overridden.