add singleton api object handling to BasicAuth

also other minor comment tweaks
minor comment tweak
implement BasicAuth API for twitter