Further work on #6, UI and client-side logic finished. Now revamp
server-side code to handle both external id and work id claims.