ItemsContentProvider: Add a login method and parse the JSON result.

It seems to work. We just need to ask the user and store the
resulting name and api_key for use when uploading classifications.