add state machine for project
added migration for repo url field
add more tests for states
add tests for all other states