Clean up templates.

Fix issues with multiple graph layout in the dashboard with mixing flot and cairo graphs.

Put fancy purply surround on flot graphs when mouseover happens.