Update aguid cookie to use the current domain [MJ-489]

As I kind of explain in the comments, my browser (Chromium 28.0.1500.71) doesn't like .localhost cookies. If you set a domain in /etc/hosts, it works fine.

All tests pass.