Token decode

Token decoding will allow to check if the token is valid and which categories of API methods are available.