Added class for json_response.

Functions similarly to the function, but can be built and chained.
Prepared statements and do not store password vars.

Use prepared statements for registration and login, and directly set password
without storing any variables for options, salt, or password.

login_with now returns bool ($logged_in)