Add Emacs #*# files to .gitignore
General Item module improvements

Started work on converting code to use textual ids rather than using
numerical ones. Also changed item types similarly. Some (most) item
handlers are still disabled at the moment