Moved res directory to img. Made favicon configurable.

Made offline image check configurable.