refactor settings a little, make keys lowercase
split login into two methods depending on type
put api url in settings