Bugfix/api errors

* Fixed bugs with the token being double-encoded by storing the token unencoded.  I leave it up to the URL generation code to encode.
* Fixed bug parsing NSCFBoolean to a bool value
* General cleanup of the APIViewController test-code that uses the API.