Use custom restapi instead of  mongo for storing bins.