#31: add 'token' module

Resolves #31.