Wrote a constraint class (ClientSubdomain) for routes, wrote client unit tests, and minor polishing.