Fix bug with containers in Player::hasCapacity
Rewrite databaseTasks
LuaJIT support on 64-bit OS X
Code cleanup