Add compatibility mode to support SMS authentication on clients that can't prompt the user directly

Read the sms code from settings in case compatibility mode is selected or
the purple_request functions do not return a valid code.