Updated to new format.
Added clean cache method.
Improved web publish through script.