Restructure project, move collector to collector.js
Shift frontend (app) related logic
Add collector class