Update check token

Backport from Eric-CG
Add modes for future use

Backport from Eric-CG
Add function generate random number
New module dailymotion from Eric-CG