Added generate token method
More tests:
Merge pull request #3 from talis/add_generate_token

Added generate token method