moved NVD3 test code to own file
refactored min/max functions so that we can use them elsewhere
filtering out sector series with domain wider than 1200
using resilience1 columns rather than calculated columns

* setting ranges accordingly
* see Message-Id: <FA7F4025B5C6464E88E4C2F9CB6D46BF0B9F4D90@EXCHF3.lse.ac.uk>
raised threshold over which sectors with wide domain are discarded
updated calculated 2002-2007&2008-2012 columns