Make RequestContext use auth_token (not auth_tok)

The RequestContext class from oslo-incubator uses 'auth_token'.
Glance's RequestContext uses 'auth_tok' -- which is inconsistent.

glance_store currently uses the oslo 'auth_token'.

We should not assume a 1-1 mapping from the glance_store to glance,
nor should we have glance_store support both 'auth_token' and
'auth_tok'. Therefore Glance should be updated to use 'auth_token'.

This change was generated automatically with:

$ for file in `find glance -name '*\.py' -exec grep -wl auth_tok "{}" \;` ; \
  do sed --in-place 's/\<auth_tok\>/auth_token/g' $file ; done

In addition, the set_auth_token function was removed. This had been used
by Nova to work around the auth_tok <-> auth_token inconsistency, but
was removed in mid-2012 as part of the move to python-glanceclient so
is no longer needed.

In conjuction with other changes this fixes image upload when
using the multi-tenant Swift store.

Change-Id: Ic8a5f44088990fd8f6290a5622b823f59ef365fc
Partial-bug: #1385213
Ignore Eric IDE files and folders in git

Change-Id: I2871707b6a2500a1d955de11381bfec54ead331a
Fix context storage bug

Fix a bug with storing the request context in thread local where the
storage was not properly cleared between requests.

(This was causing the same request to always be logged.)

Closes-Bug: 1384911
Change-Id: Ie30b93900451b0f9f6fd8158457b0b66903af470
Raise an exception when quota config parameter is broken

Function get_remaining_quota returns None when quota config
param doesn't match a pattern (i.e. it's broken). It messes up 
the logic of its callers and leads to unpredictible behavior of 
the entire system.

This code raises InvalidOptionValue exception if config is broken

Change-Id: Ib08d2114f460d127aacf580fc519a58d6e8eba16
Initiate deletion of image files if the import was interrupted

If the image is deleted by appropriate API call while its content
is still being uploaded in import task in v2, an exception is raised
and it is not handled in the API code. This leads to the fact that
the uploaded image file stays in a storage and clogs it.

There existed code that safely removes image files if the exception
occurs.

Change-Id: I4f7d1aa103f4ce7abf4026e7097b9e76c24135fa
Closes-Bug: 1371118
Merge "Fix context storage bug"
Merge "Initiate deletion of image files if the import was interrupted"
Merge "Raise an exception when quota config parameter is broken"
Merge "Ignore Eric IDE files and folders in git"
Merge "Make RequestContext use auth_token (not auth_tok)"