Lotto: delegate id start from 1, 0 for invalid, update lotto tests
Lotto: add htdoc file