FAIMS-238: refactoring project database + adding query module + query test framework + fixing project concurrency issues
FAIMS-238: adding dirty flag for project to improve server editing performance
FAIMS-238: fixing broken tests
FAIMS-238: cleaning up queries
FAIM-238: fixing bug where lock was removed + updating rvmrc
merging master