Update to use current Freebase API

The legacy Freebase API has been retired.  This pull request updates it to use the new API as well as pulling the MQL from a separate file where it's easier to read/modify.