Fixes for obtaining proxy granting ticket. Code cleanup. Linting.