Add gitignore file
Add package.json for installation of dependencies.
State machine example.