Added SSL_CERT options for foursquare config, cleaned up some ajax calls