More general refactoring
Refactoring, fixed "getNextCompletedActivityId()" bug and added code coverage via "*Spec.js"
More test coverage and added ".project" to .gitignore