Add ability to route to a place on the initial page load.
The current recursive search implementation finds the shortest path to everywhere. Previously, this information was discarded and re-generated with each routeTo. This commit only deletes it when the start point changes or accessibleRoute is toggled (which invalidates the path data stored in dataStore.
Some code cleanup. Separated out some frequently-used code chunks into a function.
Factor out some reused/reusable code, in preparation for adding 'getRouteLength' functionality.
Factor out more routeTo() code and use it in a function which lets you get the shortest route to either a single destination, or an array of destinations.
Pretty print checkMap() report. List unreachable rooms, as well as unreachable paths. Colorize unreachable rooms and paths for visual diagnostic.
Added some events (wfMapsVisible and wfFloorChange) thrown only when wayfinding is initialized with 'mapEvents': true. This is to ease writing extra ui elements (such as a floor switcher).
Set startpoint and draw pin before maps are made visible. Fixes some bugs with routing on (or soon after) page load.
Merge pull request #14 from dssit/master

Performance Improvements for Routing and Routing Immediately on Page Load