Converted products to zero-indexing

Products start at index 0 now, updated both agent and device code. Also
renamed directory.