Added a static method for generating random tokens.

I have copied over the random token generator from the FOSOAuthServerBundle for generating random consumer keys and secrets.