Add Item.getWeight
Fix attributes bug
Minor cleanup
Use max_allowed_packet in DBInsert

Use max packet length from MySQL in DBInsert class to know when it is
appropriate to execute the query
Remove old comment in Database class
Lua changes

You can now access Creature & Item userdata with these keys, "itemid",
"uid", "actionid" and "type".

Item.transform should not debug the client when setting the id to 0, it
does nothing in that case now.
Merge pull request #1062 from ninjalulz/itemGetWeight

Add Item.getWeight
Initial commit for non-blocking SQL queries
Optimize playerdeath.lua