Refactored 'getJsonFromUrl' into state machine. Code cleanup.
Refactored 'getJsonFromUrl' into state machine.
Code cleanup.

greatwolf/blackbird,butor/blackbird,greatwolf/blackbird,butor/blackbird,butor/blackbird,greatwolf/blackbird