Add support for non-expiring refresh tokens

Resolves #328
This is very useful for CLI tools.