Fixes to get smartthings oauth working

* Pulling oauth code was crashing app (passing true to url.parse will parse query string)
* Pulling first time device list was crashing app (no auth provided)