Updated the base query which is now fast enough to run in real time. Updated layer1 to reflect those changes. Also updated sample to the current format. Grouped everything together into data.php which returns the base data by default and returns layer 3 data if passed a section ID.
Removed old script