Leverage Wikipedia articles' page ids to find links with Freebase entities

Can you please review this change which uses Wikipedia Page Ids to link with Freebase entities?
I think now the first two boolean arguments are not needed, but have not removed them for compatibility issues with existing scripts.