Refactor awfy driver to add asmjs-ubench support.