JSON.parse the escaped JSON for initialState.

This resolves the issue of dashboards not loading when passed as /dashboard/<name>.
Patch for 'normalize' that crashed with empty set

When a function is called on an empty serie, the function 'normalize'
encoutered an error.
Now it raises a custom error that is tracked by the function 'evaluateTokens'
and returns []
adding test function for normalize()
backport of changed() function to master, refs #530
Merge branch 'master' into new_change_function
check if series is empty list before movingAverage
check if series are empty in movingMedian
Merge pull request #860 from ptbrowne/fix/movingAverageEmptySeries

Fix #788: Check if series is an empty list before doing movingAverage
Merge pull request #646 from g76r/f_normalize

Make normalize() accept empty series
first stab at a test for changed(), refs #530
fix merge conflicts in tests
fix our expected list and list syntax
Merge pull request #866 from obfuscurity/new-changed-function

Port changed() function to master
sort user graphs by username, fixes #209
whitespace
Merge pull request #868 from obfuscurity/sort_user_graphs

Sort user graphs by username, fixes #209
reload graphs tree in ajax callback, fixes #603
Merge pull request #870 from obfuscurity/reload_graphs_tree_after_ajax

Reload graphs tree in ajax callback, fixes #603
wrong series.name in percentileOfSeries, fixes #501
Merge pull request #872 from obfuscurity/fix_percentileOfSeries_name

Wrong series.name in percentileOfSeries, fixes #501