Refactor code of select/unselect portal. Add hook 'portalSelected' with guid of selected and unselected portal.
Plugin bookmark for maps and portals: Change to use hook 'portalSelected' to remove star instead of modify window.unselectOldPortal().
Fix comment.
Merge pull request #537 from Xelio/hook-select-portal

Refactor code of select/unselect portal. Add hook 'portalSeleted'.
Updated autolink.js and taphold.js to the latest from their upstream repos.
The changes are mainly bugfixes and a few performance improvements.
Note that autolink.js is now the minified version from upstream.
Merge pull request #538 from gabrielsjoberg/external_updates

Update autolink.js and taphold.js from upstream.
add current taphold.js - the one merged from #538 was broken
trap exceptions when running hooks, log the error, and continue
should reduce issues caused when plugins are broken
pushed android max target to 4.3
call WebView method in UI thread (thx for the hint fkloft)
do never use cache when google account page is loaded
Plugin Draw Resonator: Change resonators style on portal selection
Merge pull request #539 from Xelio/patch-plugin-draw-reso-1

Plugin Draw Resonator: Change resonators style on portal selection
better selected portal handling
- ensure the selected portal isn't deleted when it isn't in the map data (e.g. due to zoom level)
- always show the selected portal on the map, even if the high density clustering code would have removed it
- deselect the selected portal, and clear the details bar, in the rare instance of the portal being deleted server-side (i.e. in the deletedEntities list)
update lat/lng clamping, to take account of the map projection not going beyond 85 degrees north/south
slight improvement around the antimeridian - wrap the map centre so it's always between +-180 degrees
also limit north/south to 85 degrees, to avoid leaving the active map area
fix bookmarks plugin when userscript is before IITC main script
refresh tweaks, reduced logging