Removed the online user counter from the Context to the ApplicationController class since it seems more appropriate.
Moving logic from background script to ApplicationController as it takes more responsibility.
Created a new type of message between frontend and backend for the moment the app is closing so the backend can notify peers that it is going offline by decreasing the counter.
Transformed the increment only CRDT counter into a positive-negative CRDT counter. Because of the use case, it will be guaranteed that the replicas only increment once and decrement once. A change is coming to do some cleanup on the increment/decrement count.
Adding loggingUtils.js to karma conf.
Cleaning up code.
Simplifying the logic for counter replication message handling on the replication controller since the app controller is taking more responsibility.