Add item generation

Add an automatic way to decide the generation an item comes from.
The items have been numbered the same way in the generations 3, 4, and 5. Generation 2 items need to specify its gen in its item.js specifically.