Rewrote web app to run in PHP (hopefully this will be faster on shared hosts).