[Tokenlib] gives options to TokenManager for more parametrization

Now accepts options with `signatureSize` and `digestAlgorithm`.
[Tokenlib] handle expiration of tokens