FAIMS-521: adding database lock checks for editing entities and relationships
FAIMS-521: fixing broken tests
FAIMS-521: fixing authenticate user checks for forms changed to ajax
FAIMS-521: cleaning up comments
FAIMS-521: updating tests for invalid user
FAIMS-521: updating tests for invalid user
FAIMS-521: updating project download to check for project lock
FAIMS-521: updating settings lock check for editing project
FAIMS-521: fixing broken tests
FAIMS-521: fixing broken tests
FAIMS-521: fixing broken test