I'm fine with that. But since the new project code doesn't save to the database yet, this is the only solution I could use. Do you want to just update all of that afterward, once this is merged in?

The only problem with the getProjectState.php is that it just echos the state. It isn't part of a large response object. Loading a project needs to also return the name, and I like always having the success and errorMessage keys as well.