Final version, works with sunfire except that you must change the WEB_ROOT filepath accordingly.