Allows users to authenticate using an OTP grid card

Generates and validates cards similar to this: http://www.entrust.com/wp-content/uploads/2013/08/card_back-patent.jpg

Also, due to the bug I found in the random number generator, I am using mt_rand() instead.