move determine_authtype somewhere more general
remove duplication in the authentication code
add support for basic authentication to all APIs
pep8
be more protective about spec compliance
make wrappers required
Merge pull request #4448 from dimagi/basic-auth-apis

make APIs accept basic auth
update pillowtop ref
Merge branch 'archive-products+explicit_case_processing' into autostaging
Merge branch 'explicit_case_processing' into autostaging
Merge remote-tracking branch 'origin/master+schedule' into autostaging
Merge branch 'schedule' into autostaging
Merge remote-tracking branch 'origin/hq-dropdown' into autostaging
Merge remote-tracking branch 'origin/logos+master' into autostaging
Merge remote-tracking branch 'origin/admin-reports' into autostaging
Merge remote-tracking branch 'origin/increase-es-timeout' into autostaging
Merge remote-tracking branch 'origin/archive-products+custom_product_data' into autostaging
Merge remote-tracking branch 'origin/archive-programs' into autostaging
Merge remote-tracking branch 'origin/subscription-no-contact-info' into autostaging
Merge remote-tracking branch 'origin/fix-timeout' into autostaging