Optimize PathFinding memory usage
There is a memory issue in the PathFinding : each time an entity move on the scene, the pathfinding generate a int[dist][2] array.
The data is now stored in a re-usable int16[2*32], stored in entity object (created once per entity).
Improve Packet parser memory usage
Avoid creating a new instance for each packets parsed. Packets now have a re-usable instance (singleton).
Greatly improve SoundManager memory usage
Now storing ended sounds in a cache object for a limited time, re-use the sound if the core need it (will avoid to create audio sound again each time).
Add a delete to replay a specific sound again
There is no need to play a specific sound multiple time at once, would use a lot of memory for no real difference.
Merge pull request #68 from vthibault/memory-optimization

Memory optimization