take afmotion client settings out of photo.rb and put into app_delegate