split oauth.php into separate files, use urlGen