added code get_wikiproject_for_url2 function to determine both wikiproject and request type ( /wiki/ or /w/api.php ) . Added tests