Reworked swagger API Key to work with django-rest-framework's token authentication

django-rest-framework has a built in token authentication library. 
The details are here: http://www.django-rest-framework.org/api-guide/authentication#tokenauthentication

This type of token can be used as an api key but the way swagger handles api keys (by adding the key to the URL) does not work with the rest framework's token authentication.

I've just done a simple modification that lets swagger put the token into the request headers and the feature now works as I expected it to.