Rebuild theme resources and cleanup templates