parse token value from auth response string (iOS)
some light refactoring and cleanup (iOS)