Return correct data from json handler
Less templates, hopefully faster
Better legend explanations. Fixes #27