Improvements to PMA charts

I have done couple of things here;

1. Abstracted out data handling and chart creation logic. (See the newly added charts.js file). This should make it easy to move to a new charting library and even using couple of them in parallel with the use of chart factoires
2. Fixed query charts
3. Added two new chart types, area charts and timeline charts