Add express support and randomHash function