Refactored locks to be globally available
Added test file for Communication.js
Moved connectionsTried out as a separate option
Wrote tests for initConnection