Authorization by API like django rest framework but manually

- Added authorization by api_key like django rest-framework but manually
Good practice is to put into try-except block only code that can raise expected exception.