Fix root to point at public
Add Base#as_json, chmod 0644 uploaded file, tune up recursive cleaning