fix cache write return value
added some useful accessors to ImThumb main class
split out HTTP handling methods into own class, stub out TODOs
fix determination of cache presence on generating requests