Re-added the files for states and state stacks, but did not reincorporate them into the application

The application builds.