dashboard fixes and enhancement

* better support for reverse-proxies
* fixing a locale-related bug when ids are > 1000
* add support for passing graphite parameters to all graphs at once in dashboard url (e.g. from=-2d or bgcolor=blue)
* add usual timeframe links (from=-1d, from=-2w, etc.) on top of dashboards to make timeframe switch easier
* add clone links for graphs and lines