Fixed issue with isAttacking and isFollowing on older protocols.

Some protocols don't send a cancel attack/follow packet to the client when a creature dies.
Added subType for Player:getItem/getItems.
Now possible to create effects and missiles via lua.
Fix calculate patterns.
Fix filestream read
Fix use-with issue #508
Fix battlelist square bug / Cleanup
Added 2 global functions for Position & g_map.getTiles().
Added gamelib for Position functions.
Some improvements to some things.
Forgot to add this.
Will stick to basic isInRange check function.
Added Queue class for event queuing (see CandyBot for examples of this).
Some fixes for class names and queue (added base class).
Must change UIMap class checks to UIGameMap.
Remove redundant classes & added some Position methods.
Update game.lua
Update game.cpp
Update protocolgameparse.cpp
Update game.cpp