Merge pull request #550 from Fuitad/master

Fixed invalid references to grid.min and grid.max in function render_panel_as_graphite_png()
Refactoring influxdb datasource, split out response handling
added missing file from last commit
New legend display option 'Align as table' (Issue #136)
added y2 text after right y axis series, when legend is in table display mode #136
Enhanced InfluxDB series aliasing (legend names) with pattern replacements (Issue #525)
Some changes to influxdb alias pattern expansions, removed  as it was to confusion, added help text to influxdb metric editor view, need to polish a litle more, #525
small changes to influxdb aliasing, and help text, #525
fixed failing unit test
New legend display option 'Right side', will show legend to the right of the graph (Closes #556)
extra fix for percent sign in aliases and plothover, #506
Fix for Max legend value when max value is zero (Issue #460)