App: add claims debug log also to zendesk handler
Subject: save O attr in subject hash for zendesk

Save also the "o" (organizationName) attribute in the subject hash to
use for zendesk login.

(So far, generate_zendesk_claim was also passing nil as the "o" field).
Merge pull request #17 from University-of-Auckland/develop-more-fixes

More fixes from Vlad
Add 'type' field to services
Transparently upgrade services to support 'type'

Defaulting to 'research' means only the 'zendesk' service needs to be
changed after deployment.
Don't lint factories on test startup

Questionable value anyway, but it broke when one of the models wasn't
being loaded for a limited test run.
Add Timecop for time travel abilities
Added AttributesClaim model

Beginning to move JWT generation logic into separate classes.
Reenable Metrics cops, and exclude problem files
Add ClaimsSet model for generating JWS
Refactor to use new ClaimsSet / AttributesClaim

Tidy up the existing code in preparation for the addition of a new
service type.
Refactor and DRY /jwt endpoint tests
Add /jwt endpoint to support auresearch services
Add service type to administration UI

The type of a service will only be settable by an administrator, and
will not be accepted as a sneaky extra parameter during registration.
Readd test case which was accidentally removed
Show the correct endpoint in the admin UI

Previously hard-coded to /research/... but now that we have more service
types, it makes sense to show the URL properly.
Add missing 'typ' claim

The claim was always set, but was accidentally removed in 5e1abf4
Copy auEduPersonSharedToken value into subject

Consume the attribute from Shibboleth so it can be released as part of
the auresearch claims.