Add npm postinstall script for installing hooks. fixed #2