New token generation and fix output on shorten

This token generation should prevent the same token from being used, also considering using a type of cooldown timer.
Short links were returning as (shortid)$, which didn't work