autodetect docroot if no base path set
use same constant as timthumb for setting image base path
refactor request-related logic into separate class
update main entrypoint
fix namespacing
updated readme