Add Filter Sidebar

To allow selection of filters aka Named Searches when
plotting charts.

Fixes #732
Fix LC_LOCALE on Xcode 5

by including "locale.h".

Fixes #734