First commit of stats REST backend