Cleanup all the hacky eval stuff we were doing in hh_ide.js to export stuff

Summary: This is much cleaner. No more eval and easier to add stuff.

As an additional plus, this code will run in node.js now as well, so it'll be easier to test perf and write some tests.

Reviewed By: @jwatzman

Differential Revision: D1565143