Adds functions for getting median and mean

Functions will return value calculated and also set the labels in the
panel to those values.
Nothing tested yet, can't really test until the panel is integrated into
the main application.
dbeckwith