move helpers.js to client and server and fix urlFor, pathFor to...

... allow passing dynamic path values directly in the options like this:

{{urlFor route='someroute' _id=someid}}