Added ip to user sessions
Some refactor to integrate the collector with the front end