Moved Pocket constants in PocketAuthProvider, in the abstract class PocketConstants extending Constants. Changed API requests to operate in JSON format. Moved error checking from getAccessToken() to buildInfo().Removed stringifications and substituted them with Json objects in POST body.