Basic item attributes for lua

Custom attributes cannot be used.
Attributes in global.lua
Compilation fix
Merge pull request #66 from dalkon/master

Basic item attributes for lua