Handled JSON response to pin verification, implemented auth via pin.

Added implementation of pin auth in program.cs for an example.

Misc other stuff, nothing critical changed besides some code in the login function.