Supports redirection for facebook/google/twitter login + refactoring.