Auto hinting and refactoring.

1. Auto hinting for node engine (disabled because it don’t work).
2. Move common stuff to ./util/util.js.