tweaked order of execution
minor cleanup
read min/max zoom var's
cleanup, removed unused code
changed _imageType and modified scope
added .css to grunt file
removed typo. Added back spatialReference. Fixes feature disappearing bug.
added css to app cache
test2 - solid, basic functionality.
Buggy. Rebuilding from ground up using test2