Add materials page to match distances page

Update code for material page to match distances
Rename page with list of materials to materials_index.php
Add mod_rewrite rules for materials and material pages
Change width of charts from 100% to 50%
Add pseudo-links for chart legends using javascript
Add jquery for development, remove later