leaflet-client: Added some debug tools

I added a window to watch the response json in an easy way.
use ?debug=true in the url to enable it and ?debug=false to disable (its persistent).

@abyrd The query params can just be edited in the url they are taken along with the request.

I have no idea why the script templates line is there because its already there in the master.