Vizzuality/gfw — pull request #606 by eightysteele (2014-07-03 18:58:05+00:00)
Title: Add FORMA concession+wdpa support to AnalysisService

If we inject AnalysisService as `service` we now have concessions and WDPA support. Boom!

```javascript
// WDPA example
var config = {dataset: 'forma-alerts', wdpaid: 180};
var callback = function(data) {console.log(data)};
service.execute(config, callback);

// Concession example (supported: logging, mining, oilpalm, fiber)
var config = {dataset: 'forma-alerts', use: 'logging', useid: 1};
var callback = function(data) {console.log(data)};
service.execute(config, callback);
```

This PR also wires up local storage by default. So all analysis results are now cached. You can clear the cache at the console by publishing the `LocalStorage/clear` event:

```javascript
mps.publish('LocalStorage/clear');
````