Templatize the state file

The state file can now be defined at the creation of the edeploy class