Update go.to.js

Adding before/after route hooks.