Fix up insert_entry to return the object. Where we are returning the
json string change code to work with new interface.
Fix equality statement to use === rather than ==.
Switch to using getset for project state.
Switch how we use project state.