Fix generation of map on resize
Refactored A* files

Moved common files into a-star-common.js, improved getNeighbourNodes.

Fixes #25