add new DB for item types
change type attribute to integer
reflect variable item types in schema
add a small class for managing item types
adjust code to the new type system
add method listing supported item types
fix Item class to be PHP 5.2 compatible

Don't use an anonymous function.
fix small syntax error
Merge branch 'item-types' - allow variable item types