Twitter authentication and OAuth stuff refactored