Allow dot in hostnames

This fixes #63. The issue was caused by hostnames that contain periods. The default Rails regex for matching parameters excludes dots, this modifies the constraint the for the `client` parameter to allow dots.

I also restructured the routes to make use of scopes, to avoid repeating the first part of the path, as well as the additional constraint, in each entry.