Added basic item IDs.

Rough implementation of ID and item interaction through the ID.  Need to
expand on it and tidy up the code, but the basics can be tested using
Test.java, which has also been modified.