Demo of https://github.com/populr/subdomainbox
Demo is live at http://app.subdomainbox.com. It is hosted on Heroku, so using the root domain is disallowed in this context. The 'app' subdomain could be omitted as the primary subdomain when deployed to a host where A records are allowed instead of CNAME.