BACKLOG-5036 : added query service and aggregation for statistics
restored user in session
cleaned up rules and segments
store event when a rule is fired
optimized rules and user updates