[wip] default to using basic authentication for secure submissions
add function to guess a phone's type by user agent + test
change default auth type based on user agent headers
Merge pull request #3982 from dimagi/basic-auth-submissions

default to using basic authentication for non-j2me secure submissions