Implemented analytics APIs, ready to test with the backend
Analytics works. Fixed some bugs on client-side (bugs on server-side as well)