Added code for importing thrift.js to get access to Thrift.
Now exports API definitions in a requirejs friendly manner.