first try at support for explicit subdomains
make PublicFile take an app object, not app_name