refactor - rename package barcharts to genedistribution
modularise genedistribution javascript code
display different gene distribution bar chart legend for proteomics experiments
refactor - do type check on dynamic field (like simulating a polymorphic method) instead of on type value. This will make it easier to implement  PROTEOMICS_BASELINE type in the next step, which is baseline for most things except tooltips