configable https wrap; keep bitly if no BITLY_LOGIN and BITLY_APIKEY; remove unwanted query from url; use urlencode instead of str.format; small optimize (or deterioration)