Rewritting twitter cache script to use oauth