Restrict the length of the user agent

Because the user agent is persisted, the allowed length can't be longer than
the allowed length in the storage.
Merge pull request #133 from alphagov/add-user-agent-validation

Restrict the length of the user agent