Add note about serialize hook to router guide

I was helping someone on IRC who was confused by this, I agreed that it's confusing not to be mentioned in the router guide.

I copied it mainly from the router api doc but changed it to slug rather than id, because I think that it's confusing to give an example that shows the default behaviour, which you'd never actually need to implement as that's what happens anyway.