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