Authorization by API like django rest framework but manually

- Added authorization by api_key like django rest-framework but manually
Function should not return two types of results (string or bool?). Common practice is to return None when you can not return the expected value.