Make booleans stringable

Fixes "unsure of how to jsonify object of type boolean",
e.g., supportsSms: false
Avoid jsonifying undefined data

For example, when requesting a verification code, there is no JSON data
to send.
Merge pull request #2 from liliakai/master

Make booleans stringable