Required update to work with latest version of IPAS

Adjustments in passing of the shields, to comply with "old" and "new" shields
Merge pull request #354 from Xosofox/patch-1

Required update to work with latest version of IPAS
only clear and refresh past chat messages if the bounding box has changed by over 10% - reduces network requests for chat data after small map movements
updated bookmarks plugin, as submitted by the author with stylesheet fixes
(some non-standard indentation at the moment though)
added plugin categories (see #358)
convert underscores to spaces in stat names returned from the server
add plugin category display support to the website
some plugin category additions/changes
website - ensure plugin list is sorted by it's ID (the filename without extension)
clear document.body.onload at startup, to remove error from remains of stock intel initialisation
multiline support for checkbox preferences (see #358)
removed not used imports and fixed whitespaces
fixed typo
some more code formatting
minor tweak to bucket allocation for data tiles. may help reduce response sizes and load on niantic servers
more plugin category tweaks
Merge branch 'master' of https://github.com/jonatkins/ingress-intel-total-conversion

Conflicts:
	website/page/code/desktop-download.php
overhaul of the max-links plugin
- rather than drawing each triangle completely, draw each edge just once. prevents overdraw
- use dashed lines for edges - allows existing links to be seen
- change to calculate on lat/lng directly, rather than the odd offset-to-positive latE6/lngE6 used before
- change the event used for detecting portals added to map - was using one fired before portals added to the map before
* Add new mods from June 10
* Attractive slidetoggle for dialog windows
* Add unusual XM objects