Hazard viewer losses

Extend the hazard viewer so that it will render uniform hazard spectra curves

LP: https://bugs.launchpad.net/oq-platform/+bug/1281105

&&

This PR allows the hazard viewer application (in need of a new, more general name) to plot multiple loss curves to a D3.js chart in a dynamic way. https://bugs.launchpad.net/oq-platform/+bug/1283111
This is not the TILESTREAM_URL, this is the call the to tile stream api to get the metadata on all the layers available.