Vik/dev

Refactor URLs, change returned json, add in groups functionality.