Async load first image.
Refactor into namespace to better suppoort testing.
Added jasmine tests for Settings class.